A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
Need a little bit of help
Joined: Sep 29, 2001
Apr 05, 2002 22:25:00
I'm looking to create the equal to a cmd file to Windows in Linux. I want to use it to kick off my application on my Linux box. In Windows I've done this many times, looking something like this
set JAVA_HOME=C:/path/to/java set CLASSPATH=C:/path/to/any/needed/jars %JAVA_HOME%/bin/java %CLASSPATH% folder.classwithmain
That will kick off my application in Windows. Can anyone help me write something similar for Linux?
Joined: Feb 20, 2001
Apr 06, 2002 18:13:00
It's been a while since I wrote an .sh file, but this should get you started.
# # setup environment export JAVA_HOME=/path/to/java export CLASSPATH=/path/to/any/needed/jars PATH=$PATH:JAVA_HOME # # invoke the program java -classpath $CLASSPATH folder.classwithmain
I suppose the export commands are not entirely necessary, since this is a starting script for a
program. hmm... how can you tell I don't work in Unix that much.
I agree. Here's the link:
- it saves me about five hours per week
subject: Need a little bit of help
Please Help----very urgent
Problem on INITIAL_CONTEXT_FACTORY
How to run several JVMs on my local PC?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013