Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-02-2007, 04:30 AM
Member
 
Join Date: Aug 2007
Posts: 2
avaj987 is on a distinguished road
launch a desktop icon program command
hello what is the simple java command code for launching
a program that is on your desktop....
for example google earth..?? thanks
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-02-2007, 08:50 AM
Member
 
Join Date: Jul 2007
Posts: 8
imran_khan is on a distinguished road
Hi,
for this you need to sequence your different program files in any word application and save it with .bat extension.
for example I have a java file named Example.java
give sequence in the word file as
javac Example.java
java Example

and save the word file with anyname.bat extension
if you have differnt java files connected to each other you can give your programs name as your needs.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 08-02-2007, 09:49 PM
Member
 
Join Date: Aug 2007
Posts: 2
avaj987 is on a distinguished road
thanks but too confusing. google earth is on my desk top.
when it is clicked it opens the program files AND connects to
google earth. apparently you have to be connected to
their site for it to work, ..another google shit idea.
anyway ,how exactly ,step by step do you access the program files and then save a different set of them?? with
a new name..?? and how would the code look...
I am just making a quick launch button launch the desktop item... thanks..
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 08-03-2007, 12:40 PM
Member
 
Join Date: Jul 2007
Posts: 8
imran_khan is on a distinguished road
If you follow these steps an icon will be created when you click on that icon it will behave like your favourite google earth icon but remember that it is only for standalone programs.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving icons on your desktop Leprechaun New To Java 3 12-14-2007 11:07 AM
Unable to execute command line command in java LordSM New To Java 1 08-08-2007 01:23 AM
Launch native app inside a JFrame??? benedums Advanced Java 1 08-07-2007 08:16 PM
problem when I try to compile a program from command prompt osval Advanced Java 2 08-06-2007 10:16 PM
k5n Desktop Calendar 0.9.0 levent Java Announcements 0 06-02-2007 08:13 AM


All times are GMT +3. The time now is 07:58 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org