Extract EAR file into java classes
Hi,
I have an EAR file and I want to extract it to get java classes, is there any way for it?
Thanks,
Uma Nath Tripathi
EAR, WAR, RAR, and EJB-JAR are just JAR files.
Use jar xvf filename to get the contents.
--olaf
Similar Messages
-
How can i use JWSDP1.6 from Ant tool to convert .wsdl file into Java class
Hi All,
i m very new in the development field.plese help me...
i have a .wsdl file and i have to make some modification in the file and return this file with build file used in Ant tool.
means my requirement is to conver the .wsdl file into java class,modify it and convert back to wsdl file.how can i do it using JWSDP1.6 and Ant tool.
thanks in advance...
Vikram Singhlemilanais wrote:
hello!
I have developpe an animation with flash. before give it to othe person in order to use it, i would like to secure it by integrated a security module inside the software.Secure it from what? Being played? Copied? Deleted? Modified?
Because, i am a java developper, i have choose Netbeans 6.1 to secure it.That has to be the most random thing I've read in some time.
do you know how can i do to integrate my animation .swf inside my java class?Java can't play SWF files and Flash can't handle Java classes, so what you're suggesting here doesn't make a lot of sense. -
How to convert a .class file into .java file without .jad using DeJDecompil
Hi all,
I am using DeJDecompiler and working with swing applications.If I try to convert a .class file into .java file,it is converting into .jad file only.Fine but if I try to save that file into .java file,It is giving lot of errors in that program.When I went into that program the total style of the program is changed and TRY-CATCH block is not recognised by the dejdecompiler,hence If I try to include some methods in the existing .java file thus got,I could not do.Kindly help me.
If I get the .java file without error then I can process the rest of the functionality.
Thanks in advance
With kind Regs
Satheesh.KNot so urgent today then!
http://forum.java.sun.com/thread.jsp?thread=553576&forum=31&message=2709757
I'm still not going to help you to steal someone�s code. -
Again,HOW to conver a .class file into .java one?
sorry , but Can't u send me a specific link for downloading this "Java decomplier"??
coz I found my self in something called (jad decompiler) with lots of versions and this is confusing
and Is that mean, that there's a decompiler which can convert the .class file into .java one?
and thanks alot man.....u help me always!
(I'm still begginner in java)Just to emphasise what yawmark said...
Decompiled java code is NEVER going to be as clear as well-written original java source code. The decompiler can see what the compiled code does but not why or what it means, so the source code that the decompiler produces is going to be ugly and hard to read. Decompilers are really only useful for experienced programmers who know what to infer, how to read between the lines...
If you need help writing something, then you're better off looking at tutorials. In tutorials the code will be well-commented. -
How to decompile a .class file into .java file using DEJDecompiler?
Hi all,
I am using DeJDecompiler and working with swing applications.If I try to convert a .class file into .java file,it is converting into .jad file only.Fine but if I try to save that file into .java file,It is giving lot of errors in that program.When I went into that program the total style of the program is changed and TRY-CATCH block is not recognised by the dejdecompiler,hence If I try to include some methods in the existing .java file thus got,I could not do.Kindly help me.
If I get the .java file without error then I can process the rest of the functionality.
Thanks in advance
With kind Regs
Satheesh.KNot so urgent today then!
http://forum.java.sun.com/thread.jsp?thread=553576&forum=31&message=2709757
I'm still not going to help you to steal someone�s code. -
Decoding .class file into .java file
How can i decode .class file into .java file?
can any one suggest the same?sekhar145 wrote:
How can i decode .class file into .java file?by using a decompiler
JAD is a known one , i am sure there are other on the internet, use you favourite search engine on Java Decompiler
can any one suggest the same?by using a decompiler
JAD is a known one , i am sure there are other on the internet, use you favourite search engine on Java Decompiler -
Error coming while deploying portal EAR file into the weblogic Portal 8.1..
HI Guys,
When I deploy the latest PORTAL EAR file into the BEA portal environment we
receive a number of these errors:
####<Feb 27, 2008 4:36:14 PM PST> <Warning> <netuix> <dev147> <portalName>
<ExecuteThread: '0' for queue: 'weblogic.kernel.System'> <<WLS Kernel>>
<BEA-423171> <
java.lang.Throwable: New portlet file
[portlet/portletname.portlet] and existing portlet
file null have the same definition label
Lebel Name. Will not create a definition for
portlet file [portlet/portletname.portlet].
at
com.bea.netuix.application.manager.persistence.jdbc.PortletDefinitionDelegate.c
reatePortletDefinitionInternal(PortletDefinitionDelegate.java:1442)
at
com.bea.netuix.application.manager.persistence.jdbc.PortletDefinitionDelegate.c
reatePortletDefinition(PortletDefinitionDelegate.java:906)
at
com.bea.netuix.application.manager.persistence.jdbc.PortletDefinitionManagerImp
l.createPortletDefinition(PortletDefinitionManagerImpl.java:520)
at
com.bea.netuix.application.manager.persistence.jdbc.PortletDefinitionManager_41
0kn4_EOImpl.createPortletDefinition
(PortletDefinitionManager_410kn4_EOImpl.java:476)
at
com.bea.netuix.servlets.repository.PortletFilePersistenceManager.create
(PortletFilePersistenceManager.java:189)
at
com.bea.netuix.servlets.repository.PortletFilePersistenceManager.createUpdatePo
rtletDefinitions(PortletFilePersistenceManager.java:304)
at com.bea.netuix.servlets.repository.PortletFilePersistenceManager.sync
(PortletFilePersistenceManager.java:609)
at
com.bea.netuix.servlets.repository.AbstractFilePersistenceManager$Sync.run
(AbstractFilePersistenceManager.java:187)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs
(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs
(SecurityManager.java:147)
at
com.bea.netuix.servlets.repository.AbstractFilePersistenceManager.startup
(AbstractFilePersistenceManager.java:86)
at com.bea.netuix.servlets.manager.PortalServlet.initFilePoller
(PortalServlet.java:511)
at com.bea.netuix.servlets.manager.PortalServlet.init
(PortalServlet.java:242)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run
(ServletStubImpl.java:1099)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs
(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs
(SecurityManager.java:121)
at weblogic.servlet.internal.ServletStubImpl.createServlet
(ServletStubImpl.java:975)
at weblogic.servlet.internal.ServletStubImpl.createInstances
(ServletStubImpl.java:954)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet
(ServletStubImpl.java:893)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet
(WebAppServletContext.java:3456)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets
(WebAppServletContext.java:3413)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets
(WebAppServletContext.java:3399)
at weblogic.servlet.internal.WebAppServletContext.preloadResources
(WebAppServletContext.java:3382)
at weblogic.servlet.internal.WebAppServletContext.setStarted
(WebAppServletContext.java:6262)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:892)
at weblogic.j2ee.J2EEApplicationContainer.start
(J2EEApplicationContainer.java:2181)
at weblogic.j2ee.J2EEApplicationContainer.activate
(J2EEApplicationContainer.java:2222)
at
weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateCo
ntainer(SlaveDeployer.java:2521)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit
(SlaveDeployer.java:2439)
at weblogic.management.deploy.slave.SlaveDeployer$Task.commit
(SlaveDeployer.java:2156)
at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit
(SlaveDeployer.java:2255)
at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare
(SlaveDeployer.java:2150)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare
(SlaveDeployer.java:2402)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask
(SlaveDeployer.java:884)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta
(SlaveDeployer.java:592)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate
(SlaveDeployer.java:501)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute
(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
Thanks in advance...
Regards,
Sandeep KBefore deploying the app, you could check database table PF_PORTLET_DEFINITION for any entries there which might conflict with yours.
--Stefan -
Errror while deploying ear file into sapwas
Hi all,
I am getting following error while deploying the ear file into sap web application server during the migration of j2ee medRec application into sapwas.
06/02/22 10:46:21 - ***********************************************************
Feb 22, 2006 10:46:21... Info: End of log messages of the target system.
Feb 22, 2006 10:46:21... Info: ***** End of SAP J2EE Engine Deployment (J2EE Application) *****
Feb 22, 2006 10:46:21... Error: Aborted: development component 'Medical Records Patient Application'/'sap.com'/'localhost'/'2006.02.22.10.44.55':
Caught exception during application deployment from SAP J2EE Engine's deploy service:
java.rmi.RemoteException: Cannot deploy application sap.com/Medical Records Patient Application..
Reason: Incorrect multiplicity value: one. Use One or Many.; nested exception is:
com.sap.engine.services.ejb.exceptions.deployment.EJBXMLParserException: Incorrect multiplicity value: one. Use One or Many.
(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
Feb 22, 2006 10:46:22... Info: J2EE Engine is in same state (online/offline) as it has been before this deployment process.
Feb 22, 2006 10:46:22... Error: -
At least one of the Deployments failed -
Thanks
Neeta VermaHi,
Check in the corresponding applcation.xml for entries
like <multiplicity>one</multiplicity>, <multiplicity>many</multiplicity> and replace them with <multiplicity>One</multiplicity> ,
<multiplicity>Many</multiplicity> respectively.
Regards,
Prasita -
How to run ear file in java application server
i want how to run .ear file in java application server
1. i m created ear file
2. i m created jar file (bean,home,remote)
3.i m created war file(in the form of jsp)
but till now i couldnt run ear file
how to run
please hel meYou must create :
1.Jar file
2.War file
And then put them into an ear file
Exemple : myapp.ear contains
myappEJB.jar
myappWEB.war
META-INF/application.xml
and application.xml looks like this :
<application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com /xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
<display-name>myapp</display-name>
<description>Demo application</description>
<module>
<ejb>myappEJB.jar</ejb>
</module>
<module>
<web>
<web-uri>myappWAR.war</web-uri>
<context-root>/myapp</context-root>
</web>
</module>
</application>Good luck -
How to extract jar files into a folder in the local disk and then import?
hai forum,
will any one tell me how should i extract jar files into a location in my project folder and then how to import the class files for further usage?
Thank you .I will be graeateful if u could explain this a bit.
Do you want to say that i should craete instance of
ZipEntry like this
InputStream is =
jarFile.getInputStream(entry);
File inputFile = new
File("C:\\myclasses.data");
FileInputStream fis=
new FileInputStream(inputFile);No! You need to write the entry using FileOutputStream copying all the bytes of the ZipEntry InputStream to the FileOutputStream.
>
What about adding into a directory?Do i have to
create on dynamically?Yes! You can use File.mkdirs(). For example
File ofile = new File("your directory where you will place the zip entries" + zipEntry.getName());
ofile.getParentFile().mkdirs(); -
Hello,
I want to wrap a file into one classe, how can I do that?
For example:
class fileWrapper {
one buffer for file content(what kind of buffer here?)
Thanks a lot
GraceThe following is not a buffer but I hope it could be of some use.
import java.io.*;
public class FileWrapper {
java.io.File file;
FileWrapper(java.io.File f) throws java.io.IOException{
this.file =f;
FileWrapper(java.lang.String fname) throws java.io.IOException{
this(new java.io.File(fname));
// .. next is an example of a method ... You can define other useful methods
public String readLines() throws java.io.IOException{//read all lines as a String object
java.io.BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(this.file),"UTF8"));
StringBuffer buffer = new StringBuffer();
String temp=null,newLine=System.getProperty("line.separator");
while((temp=reader.readLine())!=null){
buffer.append(temp).append(newLine);
reader.close();
return String.valueOf(buffer);
/*public static void main(String[] args) throws java.lang.Exception{
FileWrapper fw = new FileWrapper("test.txt");
String str = fw.readLines();
System.out.println(str);
} -
Hi..
I am currently working on Internationalization. I have created property files for the textual content and using PropertyResourceBundles. Now I want to use ListResourceBundles. So what I want to know is..
How to convert Property files into Java Objects.. I think Orielly(in their book on Internationalization) has given an utitlity for doing this. But I did not get a chance to look into that. If anyone has come across this same issue, can you please help me and send the code sample on how to do this..
TIA,
CKHi Mlk...
Thanks for all your help and suggestions. I am currently working on a Utility Class that has to convert a properties file into an Object[][].
This will be used in ListResourceBundle.
wtfamidoing<i>[0] = currentKey ;
wtfamidoing<i>[1] = currentValue ;I am getting a compilation error at these lines..(Syntax error)
If you can help me.. I really appreciate that..
TIA,
CK -
Got this error after deploying ear file into OC4J server.
Hello Frnsz,
Can any one help to resolve the following error :)
Got this error after deploying ear file into OC4J server.
2008-06-04 14:57:58.551 WARNING J2EE JSP-0027 Errors parsing file:/C:/Program Files/Java/oc4j/j2ee/home/applications/MyEarProject/MyEarProjectWeb/WEB-INF/tld/pager-taglib.tld
2008-06-04 14:57:58.566 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
2008-06-04 14:57:58.566 WARNING J2EE JSP-0027 Errors parsing file:/C:/Program Files/Java/oc4j/j2ee/home/applications/MyEarProject/MyEarProjectWeb/WEB-INF/tld/struts-bean.tld
2008-06-04 14:57:58.598 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
2008-06-04 14:57:58.598 WARNING J2EE JSP-0027 Errors parsing file:/C:/Program Files/Java/oc4j/j2ee/home/applications/MyEarProject/MyEarProjectWeb/WEB-INF/tld/struts-html.tld
2008-06-04 14:57:58.629 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
2008-06-04 14:57:58.629 WARNING J2EE JSP-0027 Errors parsing file:/C:/Program Files/Java/oc4j/j2ee/home/applications/MyEarProject/MyEarProjectWeb/WEB-INF/tld/struts-logic.tld
2008-06-04 14:57:58.660 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
2008-06-04 14:57:58.660 WARNING J2EE JSP-0027 Errors parsing file:/C:/Program Files/Java/oc4j/j2ee/home/applications/MyEarProject/MyEarProjectWeb/WEB-INF/tld/struts-nested.tld
2008-06-04 14:57:58.691 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
2008-06-04 14:57:58.691 WARNING J2EE JSP-0027 Errors parsing file:/C:/Program Files/Java/oc4j/j2ee/home/applications/MyEarProject/MyEarProjectWeb/WEB-INF/tld/struts-tiles.tld
2008-06-04 14:57:58.723 NOTIFICATION Binding web application(s) to site default-web-site ends...
2008-06-04 14:57:58.723 NOTIFICATION Application Deployer for MyEarProject COMPLETES. Operation time: 3422 msecs
2008-06-04 14:58:04.895 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
2008-06-04 14:58:04.910 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
2008-06-04 14:58:04.926 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
2008-06-04 14:58:04.942 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
2008-06-04 14:58:04.957 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
2008-06-04 14:58:04.973 WARNING J2EE JSP-0003 JSP Tld Cache Logging:
2008-06-04 14:58:04.973 WARNING J2EE JSP-0003 loading Tld's into cachedConfigTable:
2008-06-04 14:58:04.973 WARNING J2EE JSP-0003 loading Tld's into cachedConfigTable:
2008-06-04 14:58:04.973 WARNING J2EE JSP-0003 loading Tld's into cachedConfigTable:
2008-06-04 14:58:04.989 WARNING J2EE JSP-0003 loading Tld's into cachedConfigTable:
2008-06-04 14:58:04.989 WARNING J2EE JSP-0003 loading Tld's into cachedConfigTable:
2008-06-04 14:58:04.989 WARNING J2EE JSP-0003 loading Tld's into cachedConfigTable:
2008-06-04 14:58:05.020 NOTIFICATION J2EE JSP-0008 Unable to dispatch JSP Page : Exception:oracle.jsp.parse.JspParseException: /WEB-INF/jsp/login.jsp: Line # 2, <%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html"%>
Error: java.lang.ClassNotFoundException: org.apache.struts.taglib.html.MessagesTei
Cheers,
CapCross posted in correct forum
[http://forum.java.sun.com/thread.jspa?threadID=5302192] -
Importing .ear file into NWDS
Hi Experts,
Do we have an option to import .ear file into NWDS directly? This ear file contains .war file. But I am not getting any option to do this import. Pls guide me.
Thanks in Advance
Mathur SaurabhHi,
Try in this way
Select the Appropriate Project as per you .ear file(WDA,JAVA,J2ee)
If java project
1) File--> New > Project>Java> Java Project> Project Name--> Choose the unziped Earfile path as the DictionaryPath.
If Enterprise Application Like(.war file and .jar)
File--> New > Project>J2eeProject> Enterprise Applicaion> Project Name--> Choose the unziped Earfile path as the DictionaryPath.
Thanks,
Sreeni. -
Urgent urgent urgent how to convert 20 ear file into 1 sca file
hi experts, friends
help me if are intersted with this question ( its very urgent )_
my questions is
1 . how to convert the 20 ear files into 1 sca file
2 . how can i do that is there any 3rd party tool is there to convert
descripation :- i have 20 application which are developed by ui webdynpro java . 20 application are in .ear
files, that i can see in sdm tool. now i need to pack or bundil all 20 application or .ear files into 1 .sca file.
plz help me to resolve this issue
regards
rajaRaja,
The following conversions are possible:
PAR to EAR
EPA to SDA
EAR to SDA
SDA to SCA
Check with this SAP Help to make SDA file first and then
SDA to SCA.
[Creation of SDA and SCA Archives|http://help.sap.com/saphelp_nw70/helpdata/EN/a3/782240da03e569e10000000a155106/frameset.htm]
Check out this SAP Note as well :
Note 696084 - EP 6.0: How to create SDA files for EPA or PAR files
You can use the Command Line tool if your environment is SAP NetWeaver 7.1 Composition Environment (CE).
[Composition Environment Command Line Tool |http://help.sap.com/saphelp_nwce10/helpdata/en/45/5a3613dca22a4ce10000000a11466f/frameset.htm]
or
Follow the way mentioned here.
[Adding Transport Packages to NWDI|http://help.sap.com/saphelp_nw70/helpdata/EN/45/bd060552fd731de10000000a1553f6/content.htm]
Regards,
Karthick Eswaran
Edited by: Karthick Eswaran on Jun 20, 2008 8:50 AM
Maybe you are looking for
-
"itunes was unable to load data class information..."
Hi everyone, When I connect the iphone to my computer, the itunes recognize the iphone but it is thinking and after a few minutes the itunes drop me the following message: "itunes was unable to load data class information from sync services reconnect
-
Inclusive Free Goods without Item Generation
Can anbody explain 'Inclusive Free Goods without Item Generation' with an example. Thanks in advance Sunit
-
I have exhausted all known options thus far. I started the Flexnet Licensing Service and restarted the system but the message continues to come up when lanching PS CS3 extended After restarting computer the Flexnet Licensing Service stops again and
-
Printers having problems printing PAGES 8 - HP and Cannon
I am trying to print a tri-fold church bulletin using the duplex option. My HP (7410 All in one) cuts off a half inch of the trailing edge on both sides. So I decided to use my Cannon (iP6700D)- the same document has been spooling for 20 minutes. Is
-
Kindle fire hd is not recognized by my macbook pro 10.6.8
Can anyone tell me if this is an apple issue and if so what I can do to remedy this so I can use a kindle fire.