473,427 Members | 1,792 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,427 software developers and data experts.

i want to autorun a program

36
i am autoruning one of my java program but its not working.i first converted the program in the jar file and then write this code in notepad and copy this code in my usb which is below.

[autorun]
open=jarf.jar
action=Run jarf Program
icon=jarf.jar
label=My Portable PC

and saved my jar program in the usb.please help me out
Sep 9 '10 #1
6 4502
Dheeraj Joshi
1,123 Expert 1GB
You can not just mention "jarf.jar" in open tag.

I never tried this, but I think it should be like,
Expand|Select|Wrap|Line Numbers
  1. open=java -jar MyJar.jar
  2.  
Also make sure classpath and other things are set.

Regards
Dheeraj Joshi
Sep 9 '10 #2
Nepomuk
3,112 Expert 2GB
Hi!

I too have never tried this before, but if it should work you'll have to have the java path in your PATH variable. To test if that's the case, open a command line interpreter (in Windows: Start -> Run -> "cmd", on Linux: Alt+F2 -> "xterm", on OS X I'm not sure of the exact route, but I think it's called "Terminal") and try running
Expand|Select|Wrap|Line Numbers
  1. java -?
If you get an output other than something like "java not found", then it won't be a problem. Otherwise you'll have to edit your PATH variable.

Greetings,
Nepomuk
Sep 9 '10 #3
ahmee
36
i also tried this way but its still not working
Sep 9 '10 #4
Nepomuk
3,112 Expert 2GB
Have you checked if java is in your PATH variable as I suggested? What was the result?

Greetings,
Nepomuk
Sep 9 '10 #5
ahmee
36
when i autorun this or any other file i got a notice that
G:\ not a valid win32 application
Sep 16 '10 #6
Nepomuk
3,112 Expert 2GB
Do you have the term "G:\" somewhere in your autorun file, the PATH variable or is the USB drive "G:\"?

Greetings,
Nepomuk
Sep 23 '10 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: M.E.Farmer | last post by:
Hello all, I needed this and did a quick search around and didn't see any examples. I knew it had to be easy, and it was. So here it is a CD_Autorun program in python. It is very simple and...
8
by: Sree | last post by:
hello friends, Can i make a C program run as as background service? for eg. like the windows services we have. which are not visible on the desktop but still running behind. If there is some...
7
by: Peter S. | last post by:
I currently have created a C# program that automatically updates an SQL database once everyday. It's an application that I manually start. I want make it so that if the (Windows 2003) server...
6
by: AOECheatmaster | last post by:
I am trying to write a C++ autorun launcher, but i have a problem, i cannot figure out how to set the buttons to launch the apps to use whatever drive number the CDROM is located at, all i can...
3
by: rojavenkat81 | last post by:
Hi All, Please help me regarding php program for convert video file to .flv file. I searched in many sites but i got only tool to convert video file to .flv file.But I want convert...
8
by: Nirav Amin | last post by:
Create a 2-D array containing the data : Pakistan Sweden France Iran China Japan Russia China Italy China China ...
1
by: qazale | last post by:
Hi I work with XP Embedded development tools. I want put an autorun program in my image. But I don't know how can I do this. How can I Put my program in the image that when the windows is run,...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Overview NOTE- This complete article on "Windows Autorun FAQs" applies theoretically to all Windows NT-based OSes till Windows Vista (and probably Vista's successors too)....
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Description NOTE- If you are unfamiliar with the concept of autoruns, then read "Windows Autorun FAQs: Overview". Que-1: How can I safely remove or edit the autorun...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.