Hi folks, I'm looking to use a script to add multiple jar libraries to CLASSPATH for a java project. Easy for me with a bat in Windows but I can't seem to get it to work on my amazon instance.
This is my home directory
ec2-user> test1.jar test2.jar poi-3.14 jar.sh
Test1.jar works fine and has no library calls from poi. Test2.jar gives a no main exception. poi-3.14 is the directory containing the poi jar files. jar.sh is my script as printed below. I've tried a few different things now such as changing the jar to tar in the file endings. Adding the . , adding the\ after the : and nothing seems to be working. I'm getting the same error each time.
This is my script
Am I doing something silly here?