Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

1 Visitor Messages

  1. Java codes have the problem that they can ( as far as I can see) only be run from the directory they are in. Some programs I have to run from everywhere, such as "DayNo" which gives the number of [the |a |to]day on the Gregorian calendar ( today is # 734898), which makes sorting on date faster. For UNIX I would copy DayNo to somewhere in the $PATH and the simple command "DayNo" returns 734898, "DayNo 2012-02-01" would return 734900. The 'java' gives me a problem, even "java ~/bin/DayNo" flags an error and so does a similar in a UNIX script file. How can I make that I can call (and start of course) my program from anywhere in my users area? Thanks.
Showing Visitor Messages 1 to 1 of 1
About jknwhz

Basic Information

Statistics


Total Posts
Total Posts
1
Posts Per Day
0.00
Visitor Messages
Total Messages
1
Most Recent Message
January 30th, 2012 08:07 AM
Total Thanks
Total Thanks
0
  • Thanked 0 Times in 0 Posts
General Information
Last Activity
February 20th, 2012 05:18 AM
Join Date
October 24th, 2011