LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-31-2006, 02:49 AM   #1
EAD
Member
 
Registered: Mar 2006
Distribution: ARCH linux
Posts: 137

Rep: Reputation: 15
How to run JAR from within Java program ?!


Hii
I have this jar
psae.jar
witch just get the name of me, and print it on screen
now by using
Code:
java -jar psae.jar XXX
it works and say "hello world xxx"
so
now I want to make a java program to run it
so I have done this
Code:
class x{
	public static void main (String[] args) {
		psae.HelloWorld.main("OZ");
		
    }
}
and it doesn't work
say:
Code:
javac -cp . x.java
a:3: package psae does not exist
           psae.HelloWorld.main("XXX");
What to do please?
 
Old 12-31-2006, 07:11 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

This link should answer your question(s).

http://www.javaranch.com is also a useful resource.

Last edited by paulsm4; 12-31-2006 at 07:14 PM.
 
  


Reply



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
How to run a java jar file. sabliny Programming 7 11-05-2005 01:59 PM
How jar java program? treotan Programming 3 09-08-2005 12:03 AM
Can't run two instances of a java program audibel Linux - Software 0 02-19-2005 04:01 PM
howto run a java.jar file in FC2-3 mickeyboa Fedora 1 02-11-2005 01:01 PM
Fedora Core 1 Associating .jar files with java -jar command pymehta Fedora 0 01-13-2005 05:26 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:52 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
Open Source Consulting | Domain Registration