osx - How can I run .sh file on MAC from other directory -


i'm new mac developing.

i try create project.sh file , run via terminal

see mac.zip more details.

the main class (com.myclass.myclass) in "main.jar" requires lib1.jar, lib2.jar, , sublib1.jar

the "classpath" property in "project.sh" created via script, cannot changed in project.sh

the value in relative path format such "../../lib/lib1.jar"

when try run "mac/project" directory contains main.jar , project.sh via mac terminal

it work fine following

gui-imac:project gui$ ./project.sh aclass bclass cclass 

however, when try run project.sh other directory, failed.

for example: run desktop directory:

gui-imac:desktop gui$ "/users/gui/desktop/gui/mac/project/project.sh" error: not find or load main class com.myclass.myclass 

how can run project.sh other directory?

please me solve problem.

thanks in advance.

earist

i don't know if answer looking run .sh script directory can use

$sh /users/gui/desktop/gui/mac/project/project.sh 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -