Jump to content
  • 0

[help]server run on linux


Question

Posted

ok this my java -version

java version "1.4.2"

gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-48)

 

Copyright © 2006 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 

but when i run Login server i got this error

 

Exception in thread "main" java.lang.ClassFormatError: net.sf.l2j.loginserver.L2LoginServer (unrecognized class file version)

  at java.lang.VMClassLoader.defineClass(libgcj.so.7rh)

  at java.lang.ClassLoader.defineClass(libgcj.so.7rh)

  at java.security.SecureClassLoader.defineClass(libgcj.so.7rh)

  at java.net.URLClassLoader.findClass(libgcj.so.7rh)

  at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)

  at java.lang.ClassLoader.loadClass(libgcj.so.7rh)

  at java.lang.ClassLoader.loadClass(libgcj.so.7rh)

  at gnu.java.lang.MainThread.run(libgcj.so.7rh)

 

can you help me?

6 answers to this question

Recommended Posts

  • 0
Posted

ok this my java -version

java version "1.4.2"

gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-48)

 

That's your problem. Post what you get by typing

echo $PATH

and

echo $JAVA_HOME

  • 0
Posted

If you are on debian lenny edit ~/.profile and add this at the end:

if [ -d "$HOME/jdk6u21" ] ; then
    PATH="$HOME/jdk6u21/bin:$PATH"
    export JAVA_HOME=$HOME/jdk6u21
fi

Change the paths to whatever matches your setup.

  • 0
Posted

Log in as root and do this:

 

create (or edit) /etc/profile.d/java.sh file

export JAVA_HOME="/usr/java/jre1.5.0_11" (change this to the directory you've installed java to)
export PATH="$PATH:$JAVA_HOME/bin" 

 

When done creating or editing the file type type:

 

source /etc/profile.d/java.sh

 

Now any user should be able to use sun's java

Try:

which java

 

and the results should be

 

/path/to/your/installed/java

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
Answer this question...

×   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.



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock