掲示板
classnotfoundexception
hi..
I am new to liferay. I have created a portlet, and integrated all the files from a Java project which contains applets into this portlet.
portlet is showing up but not the applet, getting classnotfoundexception.
please help.
I am new to liferay. I have created a portlet, and integrated all the files from a Java project which contains applets into this portlet.
portlet is showing up but not the applet, getting classnotfoundexception.
please help.
can you provide log. Which class is missing ???might be some class path problem or jar file missing
var attributes = {codebase : ".",
code: "com.eteks.sweethome3d.applet.SweetHome3DApplet",
archive: jars,
width:"1250", height:"100",
name:"DECOR-SpacePlannerPro"};
var parameters = {java_arguments:"-Xmx512m -Dcom.eteks.sweethome3d.deploymentInformation=Online",
showMemoryStatus:"true",
userLanguage:"en",
furnitureCatalogURLs:"/online/furnitureCatalog.zip,online/additionalFurnitureCatalog.zip",
furnitureResourcesURLBase:"/models/",
texturesCatalogURLs:"/online/texturesCatalog.zip",
texturesResourcesURLBase:"/textures/",
listHomesURL:"/online/listHomes.jsp?user=<%=user%>",
readHomeURL:"/online/readHome.jsp?home=%s&user=<%=user%>",
readPreDefinedRoomURL:"/online/preDefinedRooms.jsp?home=%s&preDefinedRooms=<%=preDefinedRooms%>",
writeHomeURL:"/online/writeHome.jsp?user=<%=user%>",
userName:"<%=user%>",
readPreferencesURL:"/online/readPreferences.jsp",
writePreferencesURL:"/online/writePreferences.jsp",
enableExportToSH3D:"true",
enableExportToSVG:"true",
enableExportToOBJ:"true",
enablePrintToPDF:"true",
enableCreatePhoto:"true",
enableCreateVideo:"true",
javaDisabled:'"><p align="center" style="margin:30px"><font color="#FF0000">Enable Java in the preferences of your browser<br>and/or install <a href="http://java.com">Java</a> to run DECOR-Space Planner Pro.</font></p><dummy att="'};
deployJava.setInstallerType('kernel');
deployJava.setAdditionalPackages('javax.swing,javax.imageio');
deployJava.runApplet(attributes, parameters, javaMinimumVersion);
this is my script in java script. i copied this into portlet jsp, not working.
how to set the codebase and code attributes, very much confused.
no errors in console.
code: "com.eteks.sweethome3d.applet.SweetHome3DApplet",
archive: jars,
width:"1250", height:"100",
name:"DECOR-SpacePlannerPro"};
var parameters = {java_arguments:"-Xmx512m -Dcom.eteks.sweethome3d.deploymentInformation=Online",
showMemoryStatus:"true",
userLanguage:"en",
furnitureCatalogURLs:"/online/furnitureCatalog.zip,online/additionalFurnitureCatalog.zip",
furnitureResourcesURLBase:"/models/",
texturesCatalogURLs:"/online/texturesCatalog.zip",
texturesResourcesURLBase:"/textures/",
listHomesURL:"/online/listHomes.jsp?user=<%=user%>",
readHomeURL:"/online/readHome.jsp?home=%s&user=<%=user%>",
readPreDefinedRoomURL:"/online/preDefinedRooms.jsp?home=%s&preDefinedRooms=<%=preDefinedRooms%>",
writeHomeURL:"/online/writeHome.jsp?user=<%=user%>",
userName:"<%=user%>",
readPreferencesURL:"/online/readPreferences.jsp",
writePreferencesURL:"/online/writePreferences.jsp",
enableExportToSH3D:"true",
enableExportToSVG:"true",
enableExportToOBJ:"true",
enablePrintToPDF:"true",
enableCreatePhoto:"true",
enableCreateVideo:"true",
javaDisabled:'"><p align="center" style="margin:30px"><font color="#FF0000">Enable Java in the preferences of your browser<br>and/or install <a href="http://java.com">Java</a> to run DECOR-Space Planner Pro.</font></p><dummy att="'};
deployJava.setInstallerType('kernel');
deployJava.setAdditionalPackages('javax.swing,javax.imageio');
deployJava.runApplet(attributes, parameters, javaMinimumVersion);
this is my script in java script. i copied this into portlet jsp, not working.
how to set the codebase and code attributes, very much confused.
no errors in console.
11年前 に Jaynil A Bagdai によって更新されました。
RE: classnotfoundexception
Regular Member 投稿: 119 参加年月日: 12/03/03 最新の投稿
Hi Ramamani,
I hope to load applet in browser you need to use applet's executable jar file into html.
Otherwise your applet's main class can't be found.
This jar file should be digitally signed.
I hope to load applet in browser you need to use applet's executable jar file into html.
Otherwise your applet's main class can't be found.
This jar file should be digitally signed.
var attributes = {codebase:"/",
code: "SweetHome3DApplet.class",
archive:"SweetHome3DApplet.jar",
width:"1250", height:"100",
name:"DECOR-SpacePlannerPro"};
i have the jar file in web app libraries.
com.eteks.sweethome3d.applet is the package.
SweetHome3DApplet.class is in aove package.
code: "SweetHome3DApplet.class",
archive:"SweetHome3DApplet.jar",
width:"1250", height:"100",
name:"DECOR-SpacePlannerPro"};
i have the jar file in web app libraries.
com.eteks.sweethome3d.applet is the package.
SweetHome3DApplet.class is in aove package.
11年前 に Jaynil A Bagdai によって更新されました。
RE: classnotfoundexception
Regular Member 投稿: 119 参加年月日: 12/03/03 最新の投稿
your code seems like incorrect, can you please try to add full package name in your code
code:"com.eteks.sweethome3d.applet .SweetHome3DApplet.class"
.
tried with all permutation and combinations.
not working.
should i give any contextpath????
not working.
should i give any contextpath????
hurray!!!!!!!!!!!!!!!!
finally got it fixed.
added request context path <%=response.encodeURL(request.getContextPath() +" ................")%> for archive and jars.
thanks.
finally got it fixed.
added request context path <%=response.encodeURL(request.getContextPath() +" ................")%> for archive and jars.
thanks.
Hi ramamani m,
I got same problem what you faced classnotfoundexception.
I have an swing application, i want put that into web(.jsp), how can i achieve this please help me.
My swing application is LightSide, You can download this in through below link,
http://ankara.lti.cs.cmu.edu/side/beta.html
plz give reply ASAP..
Thank you..
I got same problem what you faced classnotfoundexception.
I have an swing application, i want put that into web(.jsp), how can i achieve this please help me.
My swing application is LightSide, You can download this in through below link,
http://ankara.lti.cs.cmu.edu/side/beta.html
plz give reply ASAP..
Thank you..