LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-09-2004, 04:15 PM   #1
sxa
Senior Member
 
Registered: Aug 2003
Location: Austin, TX
Distribution: Mac OS 10.7 / CentOS 6(servers) / xubuntu 13.04
Posts: 1,186

Rep: Reputation: 49
Running a Java App on Linux


I have recently downloaded a piece of Amatuer Radio software that uses Java. I have never used Java before on linux, so I installed Java and it appears to be installed on my system.



Code:
stevex@maestro:~/JLog$ java -version
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
Using what the JLog (The program I am trying to install) Howto file I should have unpacked the file into a directory.. I did 'jar xv jl-1.02' inside the directory, and it unpacked the files..

Code:
stevex@maestro:~/JLog$ dir
Legal.txt  build.xml       contests/  foo          jl.bat  logs/
META-INF/  com/            data/      jl-1.02.jar  jl.sh   operations/
bin/       configuration/  docs/      jl-gen.bat   libx/   server.bat
According the Howto I should:

Quote:
On UNIX/Linux/OS X, type
'java JL'.
http://www.qsl.net/w1jq/HOWTO.txt

When I do that I get an error.. so I need to know if my error is a Java Error, or me doing somthing wrong. I understand that not many of you know about the program I am trying to install (or atleast I don't assume there are many hams on here) BUT I figure many of you know about Java, and I suppose its all about the same, atleast when getting things to run.

Code:
stevex@maestro:~/JLog$ java JL
Exception in thread "main" java.lang.NoClassDefFoundError: JL
Thats the error I get when I use the comman instructed by the HowTo.. I assume the howto is correct, and I am doing things correct.. and that that manes there is a Java error.. How do you I start the Java runtime enviroment to run apps?

Thanks for your time and help!
 
Old 12-09-2004, 05:09 PM   #2
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
that is a java error. most likely the class JL is not in the default package. you have to track down which package by either
Code:
jar -t <jarfile>
or look at the source code. The package name is usually (com.something.something or java.something...)

once you find out run JL by
Code:
java <package>.JL
 
Old 12-09-2004, 05:16 PM   #3
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 30
There's a startup script in the jl directory, to run it simply type in

Code:
sh jl.sh
HTH

Mad
 
Old 12-09-2004, 05:26 PM   #4
sxa
Senior Member
 
Registered: Aug 2003
Location: Austin, TX
Distribution: Mac OS 10.7 / CentOS 6(servers) / xubuntu 13.04
Posts: 1,186

Original Poster
Rep: Reputation: 49
If I was not born blonde..

Thanks.. I did sh jl.sh and now I have my program running..

Now for getting my other log program going which is in Java, but seems to be very different.

Thanks Again!
 
  


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
windows java based app running on fedora core 3? linuxmandrake Linux - Software 2 06-18-2005 11:10 AM
error in running a java app in linux milo36472 Linux - Newbie 16 02-09-2005 11:44 PM
Problems running a Java Swing app under Linux paulmai Linux - General 2 12-04-2004 06:51 PM
help with running a java app Soggy Linux - Software 7 11-20-2003 07:57 PM
Running VB app in Linux rick Programming 4 01-22-2002 03:23 AM


All times are GMT -5. The time now is 04:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration