I'm trying to convince Zucker Reports to display a Jasper report but am getting a Java error and I don't speak java-ese. I see that there is a file not found error, but I can't figure out which file is not found. I replaced the long classpath with <SNIP>.
error compiling report report2.jrxml - cmdline: javaw -classpath "<SNIP>"
at.go_mobile.zuckerreports.JasperCompileMain D:\Program Files\sugarcrm-5.2.0e\php\tmp\php83.tmp modules/ZuckerReports/resources/report2.jasper 2>&1
JasperBatchMain :: compiling jasper design D:\Program to Files\sugarcrm-5.2.0e\php\tmp\php83.tmp
JasperBatchMain :: java.io.FileNotFoundException: D:\Program (The system cannot find the file specified)
net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException: D:\Program (The system cannot find the file specified)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:172)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:152)
at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:150)
at at.go_mobile.zuckerreports.JasperCompileMain.main(JasperCompileMain.java:17)
Caused by: java.io.FileNotFoundException: D:\Program (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(Unknown Source)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167)
You have a space in your file path. Enclose it in double quotes.
Possibly in the <SNIP> part. Try placing your files outside of Program Files.
Look at this bit of the error message:
compiling jasper design D:\Program to
Files\sugarcrm-5.2.0e\php\tmp\php83.tmp
It's taken the filename with a space in and interpreted it as two separate arguments.
Either quote the filename or (possibly simpler) move everything to a directory without a space in the name.
What program did you use to generate the JasperReports file report2.jrxml? iReport? My guess is that your iReport is too new, the JasperReports engine came with ZuckerReports is quite old. Try use an older version of iReport instead.
Related
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
ERROR - mssql08 (The system cannot find the file specified)
java.io.FileNotFoundException: mssql08 (The system cannot find the file specified)
at java.io.FileInputStream.open0(Native Method)
You're probably running a version without support for mssql08.
Verify by
java -jar schemaspy.jar -dbhelp
You can get the latest snapshot at
https://github.com/schemaspy/schemaspy/blob/master/README.md#latest-build
I am having Aparapi translating Java code to OpenCL. However I wonder how I can see the generated OpenCL code. The website says "by using adding -Dcom.amd.aparapi.enableShowGeneratedOpenCL=true to your command line when you start your JVM". Being new to this technology, I am not sure how exactly you can do this? Can anyone please help by elaborating the process?
Added part:
Thank you. But what should I do in case of hadoop? I am trying to generate the OpneCL code for a hadoop program that I am running this way:
hadoop jar .java
I have tried adding -Dcom.amd.aparapi.enableShowGeneratedOpenCL=true before and after jar word, both did not work. Here is what I got.
Exception in thread "main" java.io.IOException: Error opening job jar: -Dcom.amd.aparapi.enableShowGeneratedOpenCL=true
at org.apache.hadoop.util.RunJar.main(RunJar.java:90)
Caused by: java.io.FileNotFoundException: -Dcom.amd.aparapi.enableShowGeneratedOpenCL=true (No such file or directory)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:215)
at java.util.zip.ZipFile.(ZipFile.java:145)
at java.util.jar.JarFile.(JarFile.java:153)
at java.util.jar.JarFile.(JarFile.java:90)
at org.apache.hadoop.util.RunJar.main(RunJar.java:88)
Just add the property to the command line which you use to start java.
Specifically somewhere you have a command line like this
java -classpath yourpackage.YourApp
Just add the property like this
java -Dcom.amd.aparapi.enableShowGeneratedOpenCL=true -classpath yourpackage.YourApp
I'm writing a java program for class that reads in from a txt file. I placed the text file in the package called Assignment3pckg and use a scanner like so:
Scanner s = new Scanner( new File("./src/Assignment3pckg/studentdata.txt") );
But it just keeps giving me
java.io.FileNotFoundException: .\src\Assignment3pckg\studentdata.txt (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.util.Scanner.<init>(Unknown Source)
at Assignment3pckg.TestHW3.readStudentDataFromFile(TestHW3.java:25)
at Assignment3pckg.TestHW3.main(TestHW3.java:14)
Any insight would be greatly appreciated!
You are using a relative path (as opposed to an absolute path) for your file. Relative paths are resolved relative to the current working directory of the Java process when you run it.
Where this directory is depends on how you run Java.
You can find out by printing it:
System.out.println(new File(".").getAbsolutePath());
You can resolve it by:
Making your path relative to the correct directory
Using an absolute path (on Windows, that would start with C:\ or another drive letter)
Note though that in Java, you have to escape backslashes in a String. So C:\myproject\src\Assignment3pckg\studentdata.txt becomes "C:\\myproject\\src\\Assignment3pckg\\studentdata.txt" as a Java String. Or "C:/myproject/src/Assignment3pckg/studentdata.txt" as Windows doesn't mind forward slashes instead of backslashes either.
I wrote a Puppet to install Play 2.1.1 on Virtual Machine running CentOS 6.2.
The Puppet executed the following two commands:
/usr/bin/wget http://downloads.typesafe.com/play/2.1.1/play-2.1.1.zip
/usr/bin/unzip play-2.1.1.zip
When I run play command inside the package, it shows the following error message:
java.io.FileNotFoundException: ~/play-2.1.1/framework/sbt/boot/update.log (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:209)
at java.io.FileOutputStream.<init>(FileOutputStream.java:160)
at java.io.FileWriter.<init>(FileWriter.java:90)
at xsbt.boot.Update.<init>(Checks.java:51)
at xsbt.boot.Launch.update(Launch.scala:275)
at xsbt.boot.Launch$$anonfun$jnaLoader$1.apply(Launch.scala:120)
at scala.Option.getOrElse(Option.scala:108)
at xsbt.boot.Launch.jnaLoader$2f324eef(Launch.scala:115)
at xsbt.boot.Launch.<init>(Launch.scala:94)
at xsbt.boot.Launcher$.apply(Launch.scala:290)
at xsbt.boot.Launch$.apply(Launch.scala:16)
at xsbt.boot.Boot$.runImpl(Boot.scala:31)
at xsbt.boot.Boot$.main(Boot.scala:20)
at xsbt.boot.Boot.main(Boot.scala)
Error during sbt execution: java.io.FileNotFoundException: ~/play-2.1.1/framework/sbt/boot/update.log (No such file or directory)
I didn't change a single line of code in the play-2.1.1 directory. I googled around for the error message, but did not find any useful answer. Could anyone point out what is the problem?
If the file does not exist and cannot be created,FileOutputStream will raise a FileNotFoundException (yes, this seems weird, but see the javadoc).
This error probably means that the user that started play does not have the proper permissions to create ~/play-2.1.1/framework/sbt/boot/update.log or its parent directories.
Please go easy on me. I just started linux and hadoop at the same time. I have almost zero experience with linux and a complete beginner with hadoop.
I downloaded the file hadoop-1.1.1-bin.tar.gz from here:
http://www.motorlogy.com/apache/hadoop/common/hadoop-1.1.1/
I was able to unpack it.
I am following a tutorial that tells me to run:
bin/hadoop jar hadoop-*-examples.jar
I am getting this error:
agordon#Ubuntu32:/hadoop/hadoop-1.1.1$ bin/hadoop jar hadoop-*-examples-1.0.3.jar
Exception in thread "main" java.io.IOException: Error opening job jar: hadoop-*-examples-1.0.3.jar
at org.apache.hadoop.util.RunJar.main(RunJar.java:90)
Caused by: java.io.FileNotFoundException: hadoop-*-examples-1.0.3.jar (No such file or directory)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:214)
at java.util.zip.ZipFile.<init>(ZipFile.java:144)
at java.util.jar.JarFile.<init>(JarFile.java:152)
at java.util.jar.JarFile.<init>(JarFile.java:89)
at org.apache.hadoop.util.RunJar.main(RunJar.java:88)
What am i doing wrong? thank you for your guidance.
Instead of hadoop-*-examples.jar use the full name of the jar file.