LinuxQuestions.org
Register a domain and help support LQ
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 05-22-2003, 04:57 AM   #1
tmbowie16
LQ Newbie
 
Registered: Jan 2003
Location: Southampton, England, UK
Distribution: Ubuntu
Posts: 17

Rep: Reputation: 0
Exclamation Problems with Java executables


I've downloaded some Java apps and want to get them to work.
As recommended, I've installed the JRE2 1.4.1 Standard Edition binary from Sun's website.

By doing ./configure, all the files seem to have installed in the one place as stated, which is /java to make things simpler for me.

However, how do I get the apps to work??? They are Java archive (.JAR) files, and there doesn't seem to be a straightforward way just to run them: the application websites give no guidance here whatsoever.

I have looked around the web a bit for decent, SIMPLE documentation and there doesn't seem to be much.

Just to note, I have installed the JRE on Debian 3.0: due to Sun's licensing laws, Debian does not distribute the JRE from Sun but only provides some basic Java utilities and a confusing FAQ.
Should the JRE work under Debian, or are there inherent problems with this????

Cheers for any help,
Tom
 
Old 05-22-2003, 05:19 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
by apps do you mean the example java programs? just run "java programname" and it should run it fine, assuming your install went correctly and everything is set up. if you are expecting a java editor / IDE, then there isn't one in the JDK, they come seperately.
 
Old 05-22-2003, 05:47 AM   #3
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Re: Problems with Java executables

Quote:
Originally posted by tmbowie16
I've downloaded some Java apps and want to get them to work.
As recommended, I've installed the JRE2 1.4.1 Standard Edition binary from Sun's website.

By doing ./configure, all the files seem to have installed in the one place as stated, which is /java to make things simpler for me.

However, how do I get the apps to work??? They are Java archive (.JAR) files, and there doesn't seem to be a straightforward way just to run them: the application websites give no guidance here whatsoever.

I have looked around the web a bit for decent, SIMPLE documentation and there doesn't seem to be much.

Just to note, I have installed the JRE on Debian 3.0: due to Sun's licensing laws, Debian does not distribute the JRE from Sun but only provides some basic Java utilities and a confusing FAQ.
Should the JRE work under Debian, or are there inherent problems with this????

Cheers for any help,
Tom
First you have to export JAVA_HOME(for programs requiring this feature) etc and make sure that the PATH variable also points to your jre install directory.
Next run the program by
java -jar filename.jar
 
Old 05-22-2003, 11:58 AM   #4
evilRhino
Member
 
Registered: Oct 2002
Distribution: Red Hat 7.3, 8.0
Posts: 33

Rep: Reputation: 15
if java is in your path you can start JAR programs like this: java -jar file.jar
 
Old 05-22-2003, 11:07 PM   #5
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Quote:
Originally posted by evilRhino
if java is in your path you can start JAR programs like this: java -jar file.jar
In my previous post I added
java -jar filename.jar
Maybe it looks the same.
I wonder why you posted the same thing that I did?
 
  


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
Problems with Java Web Start (java 1.4.2 - 1.5.0) on Slackware Egy Slackware 11 05-10-2005 07:30 AM
JAVA:(jwstric2) Problems in JAVA-LINUX nedian123 Programming 1 06-28-2004 05:12 PM
anyone having problems like this with java deepsix Linux - Software 2 08-28-2003 10:35 AM
problems with java steelrose Linux - Newbie 2 02-14-2002 08:06 AM
Problems running executables in RH 7.2 oudent Linux - Newbie 1 11-20-2001 11:14 AM


All times are GMT -5. The time now is 06:26 AM.

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