Running a class file in unix




















I've made a Windows batch file that successfully runs this java class. Unfortunately, I can't get it to run off a unix shell. I can run a HelloWorld program using a hello.

From the command prompt, I ran: java -cp hsql. DropTables and it worked. I then created a shell script DropDB. I tried putting in the absolute path instead of the dot, and it still didn't work. Originally posted by Rob Levo: I believe a ";" is required instead of a ":" as a separator for -cp paths.

Forum: Java in General. Gabriel Cane. Any help would be appreciated. Assuming you already know how it behaves, you can run java file as:. This is to make your process to run in background. Sign up to join this community. The best answers are voted up and rise to the top.

Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. How should I run a. Asked 5 years, 8 months ago. Active 5 years, 8 months ago. Viewed 6k times. So make sure that the shell you are using to run your file is the right one for the job.

You Might Also Like How to. How to. Co-authors: 7. Updated: March 25, Categories: File Sharing. Thanks to all authors for creating a page that has been read 19, times. Is this article up to date?

Yes No. Cookies make wikiHow better. By continuing to use our site, you agree to our cookie policy. About This Article. Featured Articles How to. Trending Articles How to. New Pages How to.



0コメント

  • 1000 / 1000