掲示板

classnotfoundexception

thumbnail
11年前 に ramamani m によって更新されました。

classnotfoundexception

New Member 投稿: 10 参加年月日: 13/02/15 最新の投稿
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.
thumbnail
11年前 に Manish Yadav によって更新されました。

RE: classnotfoundexception

Expert 投稿: 493 参加年月日: 12/05/26 最新の投稿
can you provide log. Which class is missing ???might be some class path problem or jar file missing
thumbnail
11年前 に ramamani m によって更新されました。

RE: classnotfoundexception

New Member 投稿: 10 参加年月日: 13/02/15 最新の投稿
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.
thumbnail
11年前 に ramamani m によって更新されました。

RE: classnotfoundexception

New Member 投稿: 10 参加年月日: 13/02/15 最新の投稿
SweetHome3DApplet.class is my class file.
thumbnail
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.
thumbnail
11年前 に ramamani m によって更新されました。

RE: classnotfoundexception

New Member 投稿: 10 参加年月日: 13/02/15 最新の投稿
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.
thumbnail
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" 
.
thumbnail
11年前 に ramamani m によって更新されました。

RE: classnotfoundexception

New Member 投稿: 10 参加年月日: 13/02/15 最新の投稿
tried with all permutation and combinations.
not working.
should i give any contextpath????
thumbnail
11年前 に ramamani m によって更新されました。

RE: classnotfoundexception

New Member 投稿: 10 参加年月日: 13/02/15 最新の投稿
hurray!!!!!!!!!!!!!!!!

finally got it fixed.

added request context path <%=response.encodeURL(request.getContextPath() +" ................")%> for archive and jars.

thanks.
thumbnail
11年前 に Santosh kumar によって更新されました。

RE: classnotfoundexception

New Member 投稿: 1 参加年月日: 13/02/21 最新の投稿
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..