Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-10-2003, 05:32 PM   #1
Registered: Mar 2003
Location: Fort Sill, Oklahoma
Distribution: Gentoo
Posts: 192

Rep: Reputation: 30
java installation problem...

alright, i've tried countless times to install java. i am trying to install the sdk, someone told me to install that one so i tried, whether i install the rpm or the tar.gz it still doesn't work. how do i install it correctly?
Old 03-10-2003, 06:31 PM   #2
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
What doesn't work about it? There are many ways to use the java sdk. Does the java compiler not work? Does the java plugin not work?

More info please. Don't be afraid to tell us more then we need to know.
Old 03-10-2003, 06:33 PM   #3
Registered: Mar 2003
Posts: 47

Rep: Reputation: 15
r u install as a user ?
have u set the path ? and make the path available with chmod ?
Old 03-11-2003, 01:52 AM   #4
LQ Newbie
Registered: Mar 2003
Posts: 18

Rep: Reputation: 0
If you are talking about the plugin: I have RH 7.2 and installed j2re-1_4_1_01-fcs-linux-i586.rpm.
Then the only thing I had to do was to make a link:
ln -s /usr/java/j2re1.4.1_01/plugin/i386/ns610/ /usr/lib/mozilla/plugins/
then launch mozilla and go.
If you are using another browser you will probably need to make the link addressing some other place.
Good luck
Old 03-11-2003, 04:31 PM   #5
Registered: Mar 2003
Location: Fort Sill, Oklahoma
Distribution: Gentoo
Posts: 192

Original Poster
Rep: Reputation: 30
i can't get the compiler to work, keeps giving saying that the java compiler isn't found and i don't know what the problem could be.
Old 03-11-2003, 11:50 PM   #6
Registered: Mar 2003
Location: Calgary, Alberta, Canada
Distribution: Gentoo 1.4, Debian Woody, Mandrake 8.1
Posts: 43

Rep: Reputation: 15
But the install worked??

If that's the case, it might just be something as simple as not setting the path to the java executable files.

Do either "whereis javac" or "locate javac" and it should return where the file is. Go to that directory and just write a simple "Hello World" program to make sure it works. If it works in that directory, either set the path to that directory, or create a symlink to /usr/bin (what I usually do), or something.

ln -s <location of javac> /usr/bin/javac

Samething with "java"
Old 03-12-2003, 01:23 AM   #7
Registered: Mar 2003
Location: Fort Sill, Oklahoma
Distribution: Gentoo
Posts: 192

Original Poster
Rep: Reputation: 30
i tried to do that, and i get this.

Warning: -Xmx100331648 not understood. Ignoring.
Warning: -Xms16777216 not understood. Ignoring.
Exception in thread "main" java.lang.InternalError: Unexpected exception while defining class ZeroGq: java.lang.ClassNotFoundException: javax.swing.JDialog
at 0x4028115f: java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/
at 0x4027408e: java.lang.Error.Error(java.lang.String) (/usr/lib/
at 0x40281542: java.lang.VirtualMachineError.VirtualMachineError(java.lang.String) (/usr/lib/
at 0x40275a92: java.lang.InternalError.InternalError(java.lang.String) (/usr/lib/
at 0x40272ff2: java.lang.ClassLoader.defineClass(java.lang.String, byte[], int, int, (/usr/lib/
at 0x40272dbb: java.lang.ClassLoader.defineClass(java.lang.String, byte[], int, int) (/usr/lib/
at 0x4030b29b: (/usr/lib/
at 0x402606d7: gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String) (/usr/lib/
at 0x40272cac: java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/
at 0x40260dcc: _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib/
at 0x4025d1fd: java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/
at 0x40253809: _Jv_BytecodeVerifier.verify_instructions_0() (/usr/lib/
at 0x40249697: _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/
at 0x40241a24: _Jv_PrepareClass(java.lang.Class) (/usr/lib/
at 0x40260568: java.lang.ClassLoader.linkClass0(java.lang.Class) (/usr/lib/
at 0x40273073: java.lang.ClassLoader.resolveClass0(java.lang.Class) (/usr/lib/
at 0x4025e99c: java.lang.Class.initializeClass() (/usr/lib/
at 0x4025d224: java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/
at 0x4025d2bf: java.lang.Class.forName(java.lang.String) (/usr/lib/
at 0x402c60a0: (/usr/lib/
at 0x40267fdc: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/
at 0x4023478c: _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/
at 0x08048900: __gcj_personality_v0 (java.compiler=NONE)
at 0x420158d4: __libc_start_main (java.compiler=NONE)
at 0x080486c1: _Jv_RegisterClasses (java.compiler=NONE)
Old 03-12-2003, 02:51 AM   #8
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,554

Rep: Reputation: 139Reputation: 139
log in as user and type
echo $PATH
there should be printed sth like
/bin:/sbin:/usr/java/sdk/bin: or similar

so if there's no entry for your javac-directory u have to make it available to the bash with an entry to
export PATH = /path/to/urjavasdk/bin/:$PATH

'source ~/.bashrc'

post if this returns sth

always execute javac and java as user

cheers, jens


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
java installation problem franklampard Linux - Software 2 09-27-2005 01:53 AM
java installation Prageem Linux - Software 4 09-20-2005 10:48 AM
Java installation problem MathewScott Linux - Software 1 03-18-2005 11:34 AM
Java installation problem fhleung Linux - General 3 10-03-2004 12:30 PM
Java VM installation problem reefadt Linux - Newbie 7 08-16-2003 08:24 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration