File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Linux / UNIX and the fly likes Unix error Unexpected end of file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Unix error Unexpected end of file" Watch "Unix error Unexpected end of file" New topic

Unix error Unexpected end of file

bob morkos
Ranch Hand

Joined: Sep 06, 2001
Posts: 104
Could anyone help? I have the following script:
if %1a==a goto argm
set _lib="lib\appcomponents.jar;lib\javax.jar;lib\jakarta-oro-2.0.1.jar;lib\jaxp.jar;lib\parser.jar;lib\Activation.jar;lib\mail.jar;lib\NetComponents.jar;lib\sevlet.jar;lib\applicator_ sync.jar;lib\application.jar"
java -classpath %_lib% com.datasource.sync.Applicator %1
goto end
echo argument missing : startODD [-option] where option could be All or One
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

Well, since this appears to be a Microsoft DOS script, I guess you WOULD be having problems!

An IDE is no substitute for an Intelligent Developer.
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
Without knowing a little more about your system, I can't be sure, but the following should be a Unix equivalent:

Put the above into a file called startODD (note, no "extension") and make it executable by typing .
Then you should be able to run your application.
I see that some of your jar files have mixed-case names ("NetComponents.jar", "Activation.jar" and so on). As a side note, remember that Unix, Linux etc. have case-sensitive filesystems, so make sure that the names listed in this file are exactly the same as the actual names of the files.
I hope this helps.
[This message has been edited by Frank Carver (edited October 28, 2001).]

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
Since it includes mail.jar and activation.jar, I think Activation.jar should be activation.jar, since javamail requires JAF to work.
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
Well, that was my guess, but you never really know what people may have renamed files as
It is sorta covered in the JavaRanch Style Guide.
subject: Unix error Unexpected end of file
It's not a secret anymore!