フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
ramamani m
classnotfoundexception
2013/02/14 23:37
答え

ramamani m

ランク: New Member

投稿: 10

参加年月日: 2013/02/14

最近の投稿

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.
Manish Yadav
RE: classnotfoundexception
2013/02/14 23:55
答え

Manish Yadav

ランク: Expert

投稿: 384

参加年月日: 2012/05/26

最近の投稿

can you provide log. Which class is missing ???might be some class path problem or jar file missing
ramamani m
RE: classnotfoundexception
2013/02/15 0:56
答え

ramamani m

ランク: New Member

投稿: 10

参加年月日: 2013/02/14

最近の投稿

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.
Jaynil A Bagdai
RE: classnotfoundexception
2013/02/15 0:59
答え

Jaynil A Bagdai

ランク: Regular Member

投稿: 120

参加年月日: 2012/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.
ramamani m
RE: classnotfoundexception
2013/02/15 1:19
答え

ramamani m

ランク: New Member

投稿: 10

参加年月日: 2013/02/14

最近の投稿

SweetHome3DApplet.class is my class file.
ramamani m
RE: classnotfoundexception
2013/02/15 1:33
答え

ramamani m

ランク: New Member

投稿: 10

参加年月日: 2013/02/14

最近の投稿

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.
Jaynil A Bagdai
RE: classnotfoundexception
2013/02/15 1:45
答え

Jaynil A Bagdai

ランク: Regular Member

投稿: 120

参加年月日: 2012/03/03

最近の投稿

your code seems like incorrect, can you please try to add full package name in your code

1 code:"com.eteks.sweethome3d.applet .SweetHome3DApplet.class"
.
ramamani m
RE: classnotfoundexception
2013/02/15 1:52
答え

ramamani m

ランク: New Member

投稿: 10

参加年月日: 2013/02/14

最近の投稿

tried with all permutation and combinations.
not working.
should i give any contextpath????
ramamani m
RE: classnotfoundexception
2013/02/20 1:58
答え

ramamani m

ランク: New Member

投稿: 10

参加年月日: 2013/02/14

最近の投稿

hurray!!!!!!!!!!!!!!!!

finally got it fixed.

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

thanks.
Santosh kumar
RE: classnotfoundexception
2013/02/21 9:20
答え

Santosh kumar

ランク: New Member

投稿: 1

参加年月日: 2013/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..