0

Hi,


I was just wondering what might be the path to load jar file from c sharp project folder.


Currently the path I'm using is

String strJarFilePath1 = "C:\\Users\\xxxx\\Downloads\\ss\\ss.jar";

which works perfectly


If I place this ss.jar in project folder by the name WindowsFormsApplication1


what might be the path?


I tried using


String strJarFilePath1 = "@WindowsFormsApplication1.ss.jar";

String strJarFilePath1 = "\\ss.jar";

String strJarFilePath1 = "..\\..\\ss.jar";

please help me out


thanks

2
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by srikanth2321
0

Where is the file in relation to your executable?

Hi,

It is in the same folder actually if you mean the supporting files

0

If it's the same directory as the executable it's

String strJarFilePath1 = "ss.jar";

that worked thanks

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.