aspose file tools*
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
Author

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
:argm
echo argument missing : startODD [-option] where option could be All or One
:end
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

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


Customer surveys are for companies who didn't pay proper attention to begin with.
Frank Carver
Sheriff

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 frankcarver.me ~ 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
Sheriff

Joined: Jan 07, 1999
Posts: 6920
Well, that was my guess, but you never really know what people may have renamed files as
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unix error Unexpected end of file
 
Similar Threads
about TEST
Ant plays tricks
how to connect EJB without using runclient
jboss on windows 98
Help needed in ant ejbjar task