Jump to content

java problems


Recommended Posts

I recently had to reinstall Mandriva 2007 after it was completely formatted. Anyways, I'm trying to get Freenet running again, but I'm getting the following error, and their own support mailing list is no help at all.

 

[root@localhost freenet]# sh start-freenet.sh
Detected freenet-ext.jar
Detected freenet.jar
Sun java detected.
Sun Java 1.4.2 detected.
Starting Freenet now: Command line: java -Xmx128m -XX:MaxDirectMemorySize=128m freenet.node.Main
Done
[root@localhost freenet]# Unrecognised command line option: -XX:MaxDirectMemorySize=128m
Usage: java [-options] class [arg1 arg2 ...]
			 (to run a class file)
  or  java [-options] -jar jarfile [arg1 arg2 ...]
			 (to run a standalone jar file)

where options include:
 -help			print out this message
 -version		 print out version number and copyright information
 -showversion	 show version number and copyright and continue
 -cp -classpath   <jar/zip files and directories separated by :>
			   locations where to find application classes
 -verbose[:class|gc|jni]
			   :class print out information about class loading, etc.
			   :gc print out results of garbage collection
			   :jni print out native method dynamic resolution
 -D<name>=<value> set a system property
 -X			   show help on non-standard options

[root@localhost freenet]#

 

I've tried a few different versions of Java, but they all give the same error, and when I try just removing that argument, it won't start at all. Anyone know what's going on?

 

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

It looks like a custom option which means you probably have to use a very specific JVM... Having said that - I would have thought their support would have told you that if it were true...

 

I'm pretty sure (although not certain - it's only from memory) that -XX:MaxDirectMemorySize is not a standard option - hence the error message. You would need a JVM that's expecting this option...

Link to comment
Share on other sites

I dunno. I did of course google it, and found a few pages referring to it.

For example:

http://forum.java.sun.com/thread.jspa?thre...ssageID=3506934

http://www.nabble.com/OutOfMemory-Exception-t3638970.html

http://mina.apache.org/faq.html#FAQ-Iget%2...tunderheavyload.

 

none of those seem to refer to a specific JVM being needed.....

 

...oh. damn. I just noticed under the 'version' info of Java, it's not actually Java. It's running 'JamVM'. Even though I ran the Java installer, like, 5 times with different versions and such. wtf. Oh well, let's try it with first removing this damn JamVM thing.

 

edit:

Ok, it won't let me remove JamVM, and I can't figure out where java is supposed to go and how to get it there, but I replaced the line in the script with the full path of the real java binary, and it appears to be working. But any help fully replacing this JamVM thing would be appreciated.

Edited by Urza9814
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...