KDE file association and work path definition
Hello group, I have a Java application which installs an executable jar file in its application directory. To be able to start the application in Konqueror by a mouse click on the executable jar file, I created in the KDE Control Center a file association for jar files which executes 'java -jar %u'. So far, no problem. In Konqueror, I navigate to the application's work directory and click on its jar file, but from there all directory routes are interpreted as relative to my user's home directory, instead of relative to the application's work directory where the jar file is located. The application will never start, as it terminates with a 'NoClassDefFoundError'. The Control Center's File Associations Module offers the option to define a work path for the file associations created, where I can hardcode this specific application's work directory and everything is fine. This approach won't work whith other Java applications though, as they will have other work directories and their executable jar files won't be located in just one fixed place. So what should I put into the 'work path' directive of the KDE Control Panel's file associations module, to be able to start java apps with a click on their respective executable jar file, wherever it is located? Thanks in advance, -- Andreas Philipp Noema Ltda. Bogotá, D.C. - Colombia
participants (1)
-
Andreas Philipp