babybug Posted May 18, 2010 Share Posted May 18, 2010 Hi all,We're using Jasperreport 1.3.4 as a .jar file in our application which worked flawlessly in windows environment. Once a report is to be generated in Linux, we're getting an error of the following of which the engine couldn't find the "javac" command:java.io.IOException: java.io.IOException: javac: not foundWe installed the compatible sun-jdk(update 18) in Linux which we used to have in windows environment according to official instructions provided by Sun Developer Network. The home path is also set correctly and the "which javac" command outputs the path as expected. However, we're still getting the error with no further hint to work on.Appreciate your help with this issue in advance Link to comment Share on other sites More sharing options...
keithrbennett Posted June 11, 2010 Share Posted June 11, 2010 How are you starting your application? If it's not from a shell, it might not be using the same path that the shell has.For example, if you're setting the path in your .bashrc file, and your Java app is launched on anything other than the command line, you might not have javac in the path.I believe the path is a Java System property available at runtime; you could log it and see.One solution is to create a link to your javac file in a directory known to be in the path, such as /usr/bin, as in:sudo ln -s /path/to/my/java/bin/javac /usr/bin/javac- Keith Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now