LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-12-2002, 01:08 AM   #1
je_fro
Member
 
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341

Rep: Reputation: 30
Java Agony!!!


Java--AGAIN!!!

Hey, guys & gals...I've been through this before, but I didn't write down what I did. So I beg your indulgence, please help me again?

So I installed j2sdk1.4.0_01 in /usr/local, and put my java IDE (BlueJ) with it. It's in /usr/local/bluej-1.22.jar. A jar file. The path looks like this:
[jeff@jgardner jeff]$ echo $PATH
/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:
/usr/X11R6/bin:JAVA_HOME/bin:/home/jeff/bin:
/usr/local/j2sdk1.4.0_01/bin

and:
[jeff@jgardner jeff]$ echo $JAVA_HOME
/usr/local/j2sdk1.4.0_01

then when I try to do what the install says, I get:

[root@jgardner local]# java -jar bluej-122.jar
Warning: -jar not understood. Ignoring.

followed by a bunch of error messages, which are just symptoms of a problem that hopefully one of y'all knows about! Well, hell here they are...

ls

bin doc include lib sbin
bluej-122.jar etc j2sdk1.4.1_01 libexec share
blueJinstall_files games j2sdk-1_4_1_01-linux-i586.bin META-INF src
[root@jgardner local]# java -jar bluej-122.jar

Warning: -jar not understood. Ignoring.

Exception in thread "main"

java.lang.NoClassDefFoundError: bluej-122.jar
at 0x4028115f:

java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/libgcj.so.3)
at 0x4027408e: java.lang.Error.Error(java.lang.String) (/usr/lib/libgcj.so.3) at 0x40275b1a: java.lang.LinkageError.LinkageError(java.lang.String) (/usr/lib/libgcj.so.3)
at 0x40276f76: java.lang.NoClassDefFoundError.NoClassDefFoundError(java.lang.String) (/usr/lib/libgcj.so.3)
at 0x402c60f9: gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.3)
at 0x40267fdc: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.3)
at 0x4023478c: _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.3)
at 0x08048900: ?? (??:0)
at 0x420158d4: ?? (??:0)
at 0x080486c1: ?? (??:0)


If you can help, THANKS!!!!
 
Old 11-12-2002, 01:43 AM   #2
GtkUser
Member
 
Registered: Sep 2002
Location: Canada
Distribution: Redhat 9.0
Posts: 637

Rep: Reputation: 30
I don't think your supposed to put anything in the same directory as your Java files. When I installed 1.4.1 I let it install in the default directory, than made the symbolic link to the mozilla plugin, it all works.
 
Old 11-12-2002, 01:55 AM   #3
je_fro
Member
 
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341

Original Poster
Rep: Reputation: 30
Huh?

It's not in the same folder. It was recommended by sun to put it in usr/local. Thats where I put my IDE, too. To uninstall. I try uninstalling from all over and still get the same errors. Maybe you're right, but I think I had it like this before. What else can you think of? Is there something similar to lsmod that'll get these suckers in line?
 
Old 11-12-2002, 02:14 AM   #4
je_fro
Member
 
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341

Original Poster
Rep: Reputation: 30
GNU JAVA LIBRARY!!!

This looks like interference by the GNU java lib!! How can I get around THAT???
 
Old 11-12-2002, 02:24 AM   #5
GtkUser
Member
 
Registered: Sep 2002
Location: Canada
Distribution: Redhat 9.0
Posts: 637

Rep: Reputation: 30
My java files were installed into: /usr/java/j2sdk1.4.1_01/

That's the directory that was created by default.
 
Old 11-12-2002, 02:32 AM   #6
je_fro
Member
 
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341

Original Poster
Rep: Reputation: 30
I'll try that!

Thank You!!
 
Old 11-12-2002, 02:52 AM   #7
GtkUser
Member
 
Registered: Sep 2002
Location: Canada
Distribution: Redhat 9.0
Posts: 637

Rep: Reputation: 30
And than make a symbolic link: ln -s
From:
/usr/java/j2sdk1.4.1_01/jre/plugin/i386/ns610/libjavaplugin_oji.so
To:
/usr/lib/mozilla-1.0.1/plugins/

That just enables your browser (mozilla or galeon) to display Java2 web content.

When you are compiling your programs you are accessing:
/usr/java/j2sdk1.4.1_01/bin/

Thats where your java and javac and jar, etc executables are stored.

When I tested Sun ONE Studio (IDE) the path I told the IDE to use was:
/usr/java/j2sdk1.4.1_01/

That's not the path the IDE was installed into, that's a different story.

Last edited by GtkUser; 11-12-2002 at 02:56 AM.
 
Old 11-12-2002, 03:04 PM   #8
je_fro
Member
 
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341

Original Poster
Rep: Reputation: 30
I got it!

The trick was to point to the java virtual machine. To extract and compile the .class files, I ran:
/usr/local/j2se1.4.1_01/bin/java -jar bluej-122.jar

Worked like a charm!
 
Old 11-12-2002, 03:09 PM   #9
je_fro
Member
 
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341

Original Poster
Rep: Reputation: 30
Hey,

Thanks again for all your help!!
 
Old 11-12-2002, 05:06 PM   #10
GtkUser
Member
 
Registered: Sep 2002
Location: Canada
Distribution: Redhat 9.0
Posts: 637

Rep: Reputation: 30
This is how I installed Java1.4.1. Now that you have yours working it might not matter, but there is a link on this website for anyone else trying to inslall it on Mandy9 or RH8: < http://members.shaw.ca/trollking >.
 
Old 11-12-2002, 11:37 PM   #11
pyropenguin
Member
 
Registered: Sep 2002
Location: Iowa
Distribution: Redhat 9.0
Posts: 52

Rep: Reputation: 15
that link you posted works real well,and its very descripitive step by step, i gave up on java long ago and i tried it again with that link and the plugins on mozilla work smooth and everything!
 
Old 11-13-2002, 08:54 AM   #12
GtkUser
Member
 
Registered: Sep 2002
Location: Canada
Distribution: Redhat 9.0
Posts: 637

Rep: Reputation: 30
Good, at least it helped someone. It was worth it than.
 
Old 11-13-2002, 12:27 PM   #13
je_fro
Member
 
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341

Original Poster
Rep: Reputation: 30
are you a GTK User?

As the name implies?
If so can you take a look at some errors I recieve when I try to compile something in Glade? I'd sure appreciate it. I'll get started putting together the post if you can help...
Thanks!!
 
Old 11-13-2002, 02:35 PM   #14
GtkUser
Member
 
Registered: Sep 2002
Location: Canada
Distribution: Redhat 9.0
Posts: 637

Rep: Reputation: 30
I don't know very much GTK, I just know C and C++ and Java. I was going to study GTK+ but than I opted for Java because there was way more documentation and I have a notebook with WinXP kicking around. I use Java between the two (and just recently Jedit).
 
Old 06-01-2003, 06:13 PM   #15
sahina
LQ Newbie
 
Registered: May 2003
Posts: 2

Rep: Reputation: 0
suse 8.2 sun one studio install problem

I just tried to install Sun One Studio Community editionto my brand new spanking Suse 8.2 box.

J2SE 1.4.1 is already installed by the way. JAVA_HOME and path to java is already set into my PATH.

Now, when I start the installation (right after I set the install directory and select the core package, I get this:

"Errors occured during the installation
package 33eca4735a5ee79cb9a7252c5ec55ac4-4.0- is not installed "

Has anybody seen this?
 
  


Reply


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 plugin installed correctly for Firefox but not able to view any java applet tvn Linux - Software 10 04-15-2010 03:13 AM
DNS Agony! gizza23 Linux - Networking 5 07-20-2005 06:41 PM
First time using MS in a while-ooooh the agony slackist General 11 11-09-2004 11:14 AM
Linux working on my laptop...after months of agony caesius_01 LinuxQuestions.org Member Success Stories 0 03-21-2004 05:10 AM
the pain, the agony with mplayer install scottyman Linux - Software 3 02-14-2003 06:04 AM


All times are GMT -5. The time now is 01:14 PM.

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