Jump to content
Changes to the Jaspersoft community edition download ×


2005 IR Help

Recommended Posts

By: Mike Coxon - largesnike


2004-04-15 00:07



I'm just attempting to test the viewer just by feeding the classspath with the jasperreports api to the viewer class.


I'm using the line:


C:usrlocalviperbasecop_ideaaucomdotviperbasereporting>java -classpath /;/usr/local/vex/build/jasperreports/dist/jasperreports-0.5.2.jar dori.jasper.vi

ew.JasperViewer -FLandscapeReport.jrprint



but I get the following:


Exception in thread "main" java.lang.NoClassDefFoundError: sun/net/www/protocol/


at sun.net.www.protocol.file.Handler.createFileURLConnection(Handler.jav


at sun.net.www.protocol.file.Handler.openConnection(Handler.java:64)

at java.net.URL.openConnection(URL.java:943)

at java.net.URLClassLoader.getPermissions(URLClassLoader.java:434)

at sun.misc.Launcher$AppClassLoader.getPermissions(Launcher.java:273)

at java.security.SecureClassLoader.getProtectionDomain(SecureClassLoader


at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12


at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)

at java.net.URLClassLoader.access$100(URLClassLoader.java:54)

at java.net.URLClassLoader$1.run(URLClassLoader.java:193)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:186)

at java.lang.ClassLoader.loadClass(ClassLoader.java:299)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)

at java.lang.ClassLoader.loadClass(ClassLoader.java:255)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)


The file LandscapeReport.jrprint is in the directory:




so there shouldn't be any problem finding that. Is there anything else that it needs?




Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...