How to increase memory of a jnlp file? - out-of-memory

I had created a jnlp file and specified max-heap size as 4096m. After downloading the jnlp file, I cross-checked the memory parameters and max-heap size of 4096m was getting reflected over there. But when I tried to run the jnlp file, it was not able to load a particular dataset(which was around 2GB). It was throwing an out-of-memory error in the console. From the task manager, I got to know that the application was not using more than 1.2 GB, even though 4 GB is specified.
I'm using Windows 10 64-bit OS and Java 8.
Can someone please help me here?
Note: I have passed -Xmx4096m as runtime parameter for java in the control panel as well.

I had a href attribute in the jnlp file header, which was overriding the configuration values present in the current jnlp. After removing that reference, it's working as expected.

Related

IDE failed to recognize file and report ``Unresolved type``

I'm using GOLAND and import a package by go mod vendor.
It works good with compiling and building.
I can find types under this package other than the problematic file
I can't find any types defined in the problematic file
I've tried invalidate caches and restart the IDE, however it still not works.
I've find out why. Golang is failed to recognize file larger than 4.19M. Can change the file size limit accroding to https://youtrack.jetbrains.com/issue/GO-5029

"qtCored4.dll was not found" when running the application outside console.what could be wrong?

when running the application from inside the mingw console, it executes without any issue. But when I try to execute the same exe file in the debug folder of windows explorer, it says QtCored4.dll was not found. I even added the bin folder location to the environment variables, but then that produces another error saying : The procedure entry point _Z5qFreePv could not be located in the dynamic link lib... .So, can anyone give me a hint on how to solve this problem? Thanks.
As nax83 pointed out above, the problem was the path variable ambiguity due to multiple version of qt installed on my system. I removed all other qt-related values from my path variable and then explicitly specified all the paths to one single version. Recompiled and built the application, and there was my application, running without any jerks and problems.

flex embedded in html on ubuntu using cherrypy

I'm trying to open an SWF file i created using mxmlc but when i open it in the browser it just shows a white page, and if i embed it into html it shows the grey background ... and when i try to open the html file from localhost (using cherrypy) it just says
Error #2046
and the server shows nothing wrong .. the message appears only in the client
I'm using ubuntu 10.10 and running mxmlc from the terminal.
note: it used to work a couple of minuets ago, i don't know what happened ... i tried to undo changes and no difference.
You have a Runtime Shared Library related error:
This error indicates that the loaded
RSL was not signed properly. In the
case of framework RSLs, the
framework's SWZ file that the
application attempted to load at run
time was not a properly signed SWZ
file. You must ensure that you deploy
an Adobe-signed RSL.
You should update the shared libraries on your server, so the client to download the proper versions to run the flash application.

Any ideas why incremental flex compilation would not work for successive compilations of identical source?

I am running mxmlc in the command-line with -incremental=true. Flex is building the cache file using a checksum the first time. Subsequent compilations fail with this message:
Failed to match the compile target with path_to_cache/projectname_329043.cache. The cache file will not be reused.
path_to_cache exists
the cache file exists in path_to_cache
the compiler is not trying to create a new cache file, so I assume it is generating the same checksum
My environment:
Flex 3.0
Mac - OSX 10.4.x
I just ran across this issue myself and after not finding the answer anywhere on the web, I bashed my head against mxmlc in practically trail-and-error until finding the answer. In my case, I was regenerating the flex config xml file each time I compiled from within ant. It turns out that this is the error you get in the case where it thinks the config has changed. You can test this by simply touching your config file and running against unmodified sources. So, if the timestamp is changing on your flex config.xml between compiles, that is likely the culprit.
It could be a permissions issue. Have you tried running with sudo? I wouldn't recommend doing that permanently, but if using sudo makes the error message go away, then you know it's a permissions issue; and you can move on to the proper way to resolve it.
You could also try going into Disk Utility and doing a check/repair of disk permissions. OSX has been notorious for needing this done occasionally.

Problem running Java application

I have developed a Java swing application, then I have deployed it through a .jar package.
I run my application on my PC double-clicking over the .jar file and everything goes fine, everything goes fine from command line (dos prompt) too.
Here my problem.
I have tried to run my app on another PC:
same OS (Windows XP)
same JRE (1.6.0_U13)
but Oracle JInitiator 1.3.1.18 installed (this is the only difference with my PC)
The app works fine only from command line, but not from gui!
Double-clicking over the .jar file I get this error:
`Could not find the main class. program will exit!`
Can this error be due to some conflict between JRE and JInitiator?
Does anybody had the same trouble?
Thanks
edit:
executing .jar files from gui is associated to the "javaw" command
It is probably a conflict with JInit, which changes the association between jar files and the java command used to launch them.
See this thread.
Re-installed java and the problem has gone away.
A quick description might be - jinitiator installs as a fully implemented JRE with some additional features for cached downloads when dealing with applets.
As all the JRE installers I've seen lately do, regardless of if they are new or old, they replace several entries in the registry to become the active JRE. Whatever you installed last will be run unless you provide a full path to java.exe or change the registry to re point at a different JRE.
examine:
HKEY_CLASSES_ROOT\jarfile\shell\open\command
and see if the path to javaw.exe is correct. (or even included)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App
Paths\java.exe and javaw.exe and javaws.exe to check the path there also.
Have you checked your PATH/CLASSPATH/JAVA_PATH variables. It is possible that Jinitiator has installed the wrong version at the front.
Possibly check your manifest entries. See if the MANIFEST.MF in the jar contains the Main-Class attribute set correctly to the class that is supposed to be invoked, if not try setting it.

Resources