The Artima Developer Community
Sponsored Link

Java Answers Forum
clicking for invoking a java program

1 reply on 1 page. Most recent reply: Jul 29, 2004 2:49 AM by Matthias Neumair

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Mathew

Posts: 6
Nickname: mam
Registered: Jul, 2004

clicking for invoking a java program Posted: Jul 28, 2004 9:26 AM
Reply to this message Reply
Advertisement
I wann to just click an application developed in java for windows to open it....How is it possible??


Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: clicking for invoking a java program Posted: Jul 29, 2004 2:49 AM
Reply to this message Reply
You just have to assign javaw.exe -cp . command for the .class file type.

As you will notice, this way you can't set specific classpaths.

Therefore I reccomend to create a .jar file from your project and to assign javaw.exe -jar

Classpaths can be set in the manifest document wich is included in the .jar file.
You also have to set the Main-Class argument in the manifest file.

Flat View: This topic has 1 reply on 1 page
Topic: Namespaces with JDOM Previous Topic   Next Topic Topic: cutText Method

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use