Pure Java Decompiler
Is there a good, free decompiler that is written in Java? If not, is there a reason? I'd like to be able to decompile/compile code directly from my running java code, and using Jad and javac is pretty clumsy for that.
I know there are some clumsy and unsupported workarounds for compiling code from java, but it really seems strange that there isn't a standard API for that...
Sorry i don't know the answer for your problem. Though let me mention that javac isn't pure Java anyway - it doesn't adhere to the JLS (the Java Language Specification) completely, whereas - for example - jikes is 100% JLS compliant.
Similar Messages
-
How to read the content of ms-word file use pure java???
how to read the content of ms-word file use pure java???
hi,
check this: http://jakarta.apache.org/poi/ -
How to run a pure java application client with ear deployed on 9ias
Hello all,
We want to run a pure java application client which is packed with target bean in the same ear file. In the application-client.xml we refer to some EJBs.
We deployed the ear file which contains ejb jar module and application client module to oracle 9ias 904 through enterprise manager on unix. The jndi.properties we used looks like this
java.naming.factory.initial=com.evermind.server.rmi.ApplciationClientInitialContextFactory
java.naming.provider.url=opmn:ormi://opmn_host:opmn_port:oc4j_instance_name/application_name
java.naming.security.principal=test
java.naming.security.credentials=test
Is there anybody knows how to run such an application client? Do we need to provide such a jndi.properties or not at all?
Thanks,
9ias userRefer OpenEJB User - Oracle ADF Essential and TomEE+
Also refer Bug in tomee 1.5.2. Fixed in 1.6.
https://issues.apache.org/jira/browse/TOMEE-756 -
The client is a pure-Java client, how to invoke session bean in oc4j server
I WOULD LIKE TO INVOKE MY SESSION BEAN FROM MY STRUT WEB PROJECT AS A PURE JAVA CLIENT . I SETUP THE JNDI INITIAL CONTEXT PROPERTY BUT I HAVE NO IDEA TO WHERE I SHALL PUT MY application-client.xml and orion-application-client.xml. MY APPLICATION THROW EXCEPTION
NamingException: StoreEJB not found
IF YOU ANY EXAMPLE PLEASE SEND ME
THIS IS MY CLIENT PROGRAME
package ejbs;
import java.io.*;
import javax.ejb.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.naming.*;
import javax.rmi.*;
import java.rmi.*;
import java.util.*;
public class StrutInt {
* @param args
public static void main(String[] args) {
//System.out.print("The application Checkup");
try
Hashtable env = new Hashtable();
env.put (Context.INITIAL_CONTEXT_FACTORY,
"oracle.j2ee.naming.ApplicationClientInitialContextFactory");
env.put (Context.SECURITY_PRINCIPAL, "oc4jadmin");
env.put (Context.SECURITY_CREDENTIALS, "admin");
//env.put (Context.PROVIDER_URL, "http://localhost:8888");
env.put (Context.PROVIDER_URL, "ormi://localhost:23791/EjbIntegrationEAR");
env.put ("dedicated.rmicontext", "true"); // for 9.0.2.1 and above
Context context = new InitialContext (env);
System.out.println("work up to this");
Object homeObject =
context.lookup("StoreEJB");
System.out.print("Hi Integration");
StoreHome storeHome = (StoreHome) PortableRemoteObject
.narrow(homeObject, StoreHome.class);
Store exa= storeHome.create();
String s =exa.foo("The foul guy");
System.out.print(s);
catch(NamingException e1) {
System.err.println("NamingException: " + e1.getMessage());
catch(RemoteException e2) {
System.err.println("RemoteException: " + e2.getMessage());
catch(CreateException e3) {
System.err.println("FinderException: " + e3.getMessage());
catch(Exception e4) {
System.err.println("FinderException: " + e4.getMessage());
}Create the object of InitialContest class. Then pass in hashTable put WLContextFactory.
then lookup to the sessionJNDI. then call the create method u will get the remote object, from the remote object u can call to the business method -
JVM 1.4 seg faults with pure java code?
Has anybody else seen JVM 1.4 seg fault when running pure java code? This seems like it shouldn't be possible, but I get the following at indeterminate times. Unfortunately, it is difficult to isolate since decreasing the size of the program avoids the problem. When the seg fault happens, the size in memory is ~1GB and there is plenty of real and virtual memory to spare.
Unexpected Signal : 11 occurred at PC=0xDE88BC8E
Function=[Unknown. Nearest: +0x100E]
Library=/usr/j2se/jre/lib/i386/server/libjvm.so
Dynamic libraries:
0x8050000 java
0xdfb60000 /usr/lib/libthread.so.1
0xdfba0000 /usr/lib/libdl.so.1
0xdfab0000 /usr/lib/libc.so.1
0xde800000 /usr/j2se/jre/lib/i386/server/libjvm.so
0xdfa40000 /usr/lib/libCrun.so.1
0xdfa20000 /usr/lib/libsocket.so.1
0xdf980000 /usr/lib/libnsl.so.1
0xdf960000 /usr/lib/libm.so.1
0xdfa70000 /usr/lib/libw.so.1
0xdf920000 /usr/lib/libmp.so.2
0xdf8f0000 /usr/j2se/jre/lib/i386/native_threads/libhpi
.so
0xdf8c0000 /usr/j2se/jre/lib/i386/libverify.so
0xdf880000 /usr/j2se/jre/lib/i386/libjava.so
0xdf860000 /usr/j2se/jre/lib/i386/libzip.so
0xda890000 /usr/lib/nss_files.so.1
Local Time = Tue May 14 16:03:38 2002
Elapsed Time = 72
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002D3
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
# Java VM: Java HotSpot(TM) Server VM (1.4.0-rc-b91 mixed
mode)
# An error report file has been saved as hs_err_pid945.log.
# Please refer to the file for further information.Hi sevenM,
Did you figure out a workaround for this problem?. Did you get it solved with the SUN people?. Is it a known bug?.
I've got exactly the same problem on the same function and VM library.
Any info on this is very much welcome.
Thx
Krithiga
I get the same error sometimes with tomcat-4.0.4 on a
Slackware 8.0.0 and JDK 1.4.0. I don't user any JSPs,
only servlets and the business calls a remote SLSB on
a remote JBOSS server and afterwards select some data
form a remote DB2 7.1 over JDBC.
Here is the log:
Unexpected Signal : 11 occurred at PC=0x40267D98
Function=copy_to_survivor_space__16DefNewGenerationP7oo
DescPP7oopDesc+0x28
Library=/usr/local/j2sdk1.4.0/jre/lib/i386/client/libjv
.so
Current Java thread:
at
at java.net.PlainSocketImpl.socketAccept(Native
tive Method)
at
at
at
t
java.net.PlainSocketImpl.accept(PlainSocketImpl.java:34
- locked <0x44ed3400> (a
400> (a java.net.PlainSocketImpl)
at
at
at
t
java.net.ServerSocket.implAccept(ServerSocket.java:438)
at
at
at
t java.net.ServerSocket.accept(ServerSocket.java:409)
at
at
at
t
org.apache.catalina.core.StandardServer.await(StandardS
rver.java:293)
at
at
at
t
org.apache.catalina.startup.Catalina.start(Catalina.jav
:794)
at
at
at
t
org.apache.catalina.startup.Catalina.execute(Catalina.j
va:681)
at
at
at
t
org.apache.catalina.startup.Catalina.process(Catalina.j
va:179)
at
at
at
t sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
at
at
t
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMetho
AccessorImpl.java:39)
at
at
at
t
sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegat
ngMethodAccessorImpl.java:25)
at
at
at java.lang.reflect.Method.invoke(Method.java:324)
at
at
at
t
org.apache.catalina.startup.Bootstrap.main(Bootstrap.ja
a:243)
Dynamic libraries:
08048000-0804d000 r-xp 00000000 03:03 757599
/usr/local/j2sdk1.4.0/bin/java
0804d000-0804e000 rw-p 00004000 03:03 757599
/usr/local/j2sdk1.4.0/bin/java
40000000-40015000 r-xp 00000000 03:03 885142
/lib/ld-2.2.3.so
40015000-40016000 rw-p 00014000 03:03 885142
/lib/ld-2.2.3.so
40017000-40020000 r-xp 00000000 03:03 69536
/usr/local/j2sdk1.4.0/jre/lib/i386/native_threads/libh
i.so
40020000-40021000 rw-p 00008000 03:03 69536
/usr/local/j2sdk1.4.0/jre/lib/i386/native_threads/libh
i.so
40021000-40022000 r--p 00000000 03:03 33106
/usr/lib/locale/en_US/LC_IDENTIFICATION
40022000-40030000 r-xp 00000000 03:03 885133
/lib/libpthread-0.9.so
40030000-40038000 rw-p 0000d000 03:03 885133
/lib/libpthread-0.9.so
40038000-4003b000 r-xp 00000000 03:03 885149
/lib/libdl-2.2.3.so
4003b000-4003c000 rw-p 00002000 03:03 885149
/lib/libdl-2.2.3.so
4003c000-40143000 r-xp 00000000 03:03 885147
/lib/libc-2.2.3.so
40143000-40149000 rw-p 00106000 03:03 885147
/lib/libc-2.2.3.so
4014d000-40410000 r-xp 00000000 03:03 1150891
/usr/local/j2sdk1.4.0/jre/lib/i386/client/libjvm.so
40410000-40558000 rw-p 002c2000 03:03 1150891
/usr/local/j2sdk1.4.0/jre/lib/i386/client/libjvm.so
4056c000-4057d000 r-xp 00000000 03:03 885152
/lib/libnsl-2.2.3.so
4057d000-4057f000 rw-p 00010000 03:03 885152
/lib/libnsl-2.2.3.so
40581000-405b5000 r-xp 00000000 03:03 950285
/usr/i386-slackware-linux/lib/libstdc++-2-libc6.1-1-2.
.0.so
405b5000-405c1000 rw-p 00033000 03:03 950285
/usr/i386-slackware-linux/lib/libstdc++-2-libc6.1-1-2.
.0.so
405c3000-405e4000 r-xp 00000000 03:03 885138
/lib/libm-2.2.3.so
405e4000-405e5000 rw-p 00020000 03:03 885138
/lib/libm-2.2.3.so
405e5000-405f6000 r-xp 00000000 03:03 69542
/usr/local/j2sdk1.4.0/jre/lib/i386/libverify.so
405f6000-405f8000 rw-p 00010000 03:03 69542
/usr/local/j2sdk1.4.0/jre/lib/i386/libverify.so
405f8000-40619000 r-xp 00000000 03:03 69543
/usr/local/j2sdk1.4.0/jre/lib/i386/libjava.so
40619000-4061b000 rw-p 00020000 03:03 69543
/usr/local/j2sdk1.4.0/jre/lib/i386/libjava.so
4061c000-40630000 r-xp 00000000 03:03 69545
/usr/local/j2sdk1.4.0/jre/lib/i386/libzip.so
40630000-40633000 rw-p 00013000 03:03 69545
/usr/local/j2sdk1.4.0/jre/lib/i386/libzip.so
40633000-4063a000 r--s 00000000 03:03 890455
/usr/local/jakarta-tomcat-4.0.4/bin/bootstrap.jar
4063a000-40641000 r--s 00000000 03:03 890436
/usr/local/jakarta-tomcat-4.0.4/common/lib/naming-comm
n.jar
40641000-40655000 r--s 00000000 03:03 890437
/usr/local/jakarta-tomcat-4.0.4/common/lib/servlet.jar
40655000-4065e000 r--s 00000000 03:03 890438
/usr/local/jakarta-tomcat-4.0.4/common/lib/naming-reso
rces.jar
4065e000-40660000 r--s 00000000 03:03 890439
/usr/local/jakarta-tomcat-4.0.4/common/lib/jdbc2_0-std
xt.jar
40660000-4066c000 r--s 00000000 03:03 890440
/usr/local/jakarta-tomcat-4.0.4/common/lib/activation.
ar
4066c000-4066f000 r--s 00000000 03:03 890441
/usr/local/jakarta-tomcat-4.0.4/common/lib/jta-spec1_0
1.jar
4066f000-4082a000 r--s 00000000 03:03 890443
/usr/local/jakarta-tomcat-4.0.4/common/lib/xerces.jar
4082a000-40874000 r--s 00000000 03:03 890444
/usr/local/jakarta-tomcat-4.0.4/common/lib/tyrex-0.9.7
0.jar
40874000-408b9000 r--s 00000000 03:03 890445
/usr/local/jakarta-tomcat-4.0.4/common/lib/mail.jar
408b9000-408d2000 r--s 00000000 03:03 890446
/usr/local/jakarta-tomcat-4.0.4/common/lib/jndi.jar
408d2000-40958000 r--s 00000000 03:03 890482
/usr/local/jakarta-tomcat-4.0.4/common/lib/db2java.jar
40958000-4096e000 r--s 00000000 03:03 890483
/usr/local/jakarta-tomcat-4.0.4/common/lib/jboss-clien
.jar
4096e000-4097c000 r--s 00000000 03:03 890484
/usr/local/jakarta-tomcat-4.0.4/common/lib/jboss-j2ee.
ar
4097c000-40996000 r--s 00000000 03:03 890485
/usr/local/jakarta-tomcat-4.0.4/common/lib/jaas.jar
40996000-409a0000 r--s 00000000 03:03 890486
/usr/local/jakarta-tomcat-4.0.4/common/lib/jbosssx-cli
nt.jar
409a0000-409a6000 r--s 00000000 03:03 890487
/usr/local/jakarta-tomcat-4.0.4/common/lib/jnp-client.
ar
409a6000-40d10000 r--s 00000000 03:03 890488
/usr/local/jakarta-tomcat-4.0.4/common/lib/jt400_3.0.j
r
40d10000-40d37000 r--s 00000000 03:03 890489
/usr/local/jakarta-tomcat-4.0.4/common/lib/log4j.jar
40d37000-423af000 r--s 00000000 03:03 69634
/usr/local/j2sdk1.4.0/jre/lib/rt.jar
423f1000-42408000 r--s 00000000 03:03 69566
/usr/local/j2sdk1.4.0/jre/lib/sunrsasign.jar
42408000-42476000 r--s 00000000 03:03 69568
/usr/local/j2sdk1.4.0/jre/lib/jsse.jar
42476000-42489000 r--s 00000000 03:03 69567
/usr/local/j2sdk1.4.0/jre/lib/jce.jar
42489000-4270a000 r--s 00000000 03:03 69632
/usr/local/j2sdk1.4.0/jre/lib/charsets.jar
447b2000-447b3000 r--p 00000000 03:03 33104
/usr/lib/locale/en_US/LC_MEASUREMENT
447b3000-447b4000 r--p 00000000 03:03 33102
/usr/lib/locale/en_US/LC_TELEPHONE
447b4000-447b5000 r--p 00000000 03:03 33103
/usr/lib/locale/en_US/LC_ADDRESS
447b5000-447b6000 r--p 00000000 03:03 33100
/usr/lib/locale/en_US/LC_NAME
447b6000-447b7000 r--p 00000000 03:03 33109
/usr/lib/locale/en_US/LC_PAPER
447b7000-447b8000 r--p 00000000 03:03 459106
/usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
447b8000-447b9000 r--p 00000000 03:03 33110
/usr/lib/locale/en_US/LC_MONETARY
447b9000-447bf000 r--p 00000000 03:03 33107
/usr/lib/locale/en_US/LC_COLLATE
447bf000-447c0000 r--p 00000000 03:03 33101
/usr/lib/locale/en_US/LC_TIME
4c840000-4c841000 r--p 00000000 03:03 33105
/usr/lib/locale/en_US/LC_NUMERIC
4c841000-4c85c000 r--p 00000000 03:03 33108
/usr/lib/locale/en_US/LC_CTYPE
4c85c000-4c85e000 r--s 00000000 03:03 36766
/usr/local/j2sdk1.4.0/jre/lib/ext/dnsns.jar
4c85e000-4c866000 r--s 00000000 03:03 890421
/usr/local/jakarta-tomcat-4.0.4/server/lib/jakarta-reg
xp-1.2.jar
4c866000-4c867000 r--s 00000000 03:03 890422
/usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-co
mon.jar
4c867000-4c871000 r-xp 00000000 03:03 885148
/lib/libnss_compat-2.2.3.so
4c871000-4c873000 rw-p 00009000 03:03 885148
/lib/libnss_compat-2.2.3.so
4c89e000-4c8bb000 r--s 00000000 03:03 36765
/usr/local/j2sdk1.4.0/jre/lib/ext/sunjce_provider.jar
4c8bb000-4c95e000 r--s 00000000 03:03 36767
/usr/local/j2sdk1.4.0/jre/lib/ext/localedata.jar
4c95e000-4c96c000 r--s 00000000 03:03 36768
/usr/local/j2sdk1.4.0/jre/lib/ext/ldapsec.jar
4c96c000-4ce06000 r--s 00000000 03:03 298906
/usr/local/j2sdk1.4.0/lib/tools.jar
4ce06000-4ce0c000 r--s 00000000 03:03 890423
/usr/local/jakarta-tomcat-4.0.4/server/lib/commons-log
ing.jar
4ce0c000-4ce0e000 r--s 00000000 03:03 890424
/usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-in
oker.jar
4ce0e000-4ce11000 r--s 00000000 03:03 890425
/usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-ma
ager.jar
4ce11000-4ce19000 r--s 00000000 03:03 890426
/usr/local/jakarta-tomcat-4.0.4/server/lib/warp.jar
4ce19000-4ceab000 r--s 00000000 03:03 890427
/usr/local/jakarta-tomcat-4.0.4/server/lib/catalina.ja
4ceab000-4ceb4000 r--s 00000000 03:03 890428
/usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-http
1.jar
4ceb4000-4ceb9000 r--s 00000000 03:03 890429
/usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-de
ault.jar
4ceb9000-4cec9000 r--s 00000000 03:03 890430
/usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-ajp.
ar
4cec9000-4ceed000 r--s 00000000 03:03 890431
/usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-util
jar
4ceed000-4cefb000 r--s 00000000 03:03 890432
/usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-coyo
e.jar
4cefb000-4cf01000 r--s 00000000 03:03 890434
/usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-we
dav.jar
4cf01000-4cf13000 r-xp 00000000 03:03 69548
/usr/local/j2sdk1.4.0/jre/lib/i386/libnet.so
4cf13000-4cf14000 rw-p 00011000 03:03 69548
/usr/local/j2sdk1.4.0/jre/lib/i386/libnet.so
4cf14000-4cf25000 r--s 00000000 03:03 890458
/usr/local/jakarta-tomcat-4.0.4/lib/jasper-runtime.jar
4cf25000-4cf59000 r--s 00000000 03:03 890459
/usr/local/jakarta-tomcat-4.0.4/lib/jasper-compiler.ja
4cf59000-4cf5e000 r--s 00000000 03:03 890460
/usr/local/jakarta-tomcat-4.0.4/lib/naming-factory.jar
4cf5e000-4cf5f000 r--s 00000000 03:03 789670
/usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46958.tm
(deleted)
4cf5f000-4cf60000 r--s 00000000 03:03 789673
/usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46959.tm
(deleted)
4cf60000-4cf63000 r--s 00000000 03:03 430785
/usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
F/lib/arenajobs.jar
4cf63000-4d067000 r--s 00000000 03:03 430786
/usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
F/lib/arenatrading.jar
4d067000-4d08c000 r--s 00000000 03:03 430787
/usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
F/lib/quartz.jar
4d08c000-4d08e000 r--s 00000000 03:03 430788
/usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
F/lib/scheduler.jar
4d08e000-4d091000 r--s 00000000 03:03 790391
/usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46960.tm
(deleted)
4d091000-4d195000 r--s 00000000 03:03 790392
/usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46961.tm
(deleted)
4d195000-4d1ba000 r--s 00000000 03:03 790394
/usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46962.tm
(deleted)
4d1ba000-4d1bc000 r--s 00000000 03:03 790395
/usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46963.tm
(deleted)
4d1bc000-4d1bd000 r-xp 00000000 03:03 69559
/usr/local/j2sdk1.4.0/jre/lib/i386/librmi.so
4d1bd000-4d1be000 rw-p 00000000 03:03 69559
/usr/local/j2sdk1.4.0/jre/lib/i386/librmi.so
4d1be000-4d1c2000 r-xp 00000000 03:03 69558
/usr/local/j2sdk1.4.0/jre/lib/i386/libioser12.so
4d1c2000-4d1c3000 rw-p 00003000 03:03 69558
/usr/local/j2sdk1.4.0/jre/lib/i386/libioser12.so
4d1c9000-4d1d2000 r-xp 00000000 03:03 885155
/lib/libnss_files-2.2.3.so
4d1d2000-4d1d3000 rw-p 00008000 03:03 885155
/lib/libnss_files-2.2.3.so
Local Time = Tue Oct 8 18:57:29 2002
Elapsed Time = 32640
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002D3
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
# Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed
mode)
# An error report file has been saved as
hs_err_pid26505.log.
# Please refer to the file for further information. -
Is There A Pure Java Solution?
Is there a pure Java solution for a servlet to create
a popup window? In other words, is there a Java solution
for creating a new window with Java code inside the
doPost() method?Try setting
response.setContentType("text/html");
response.setStatus(HttpServletResponse.SC_PARTIAL_CONTENT);
and stream html with javascript to pop a window. Don't have code right now...but try to search in this direction. Sure you can do...I will post the code if I find..
- -
Devloping graphs using pure java without applets and swings
Hi Guys
i want to devlop bar graphs,pie charts,line graphs using pure java.i don't want to use applets and swings..does any body help on this asap..
IT'S VERY URGENT
cheers
ANANDGo to
http://java.sun.com/docs/books/tutorial/information/download.html#OLDui
and get: Creating a User Interface (AWT Only) Archive (tut-OLDui.zip) -
How to deploy a pure jave development component to server?
i have created a pure java development component.
but i cannot find a way to deploy it to server
is there any way?You need to essencially wrap your java development component with a deployable development component.
In order to do that, you need to:
- Define a public part for your development component of type assembly.
- Create a deployable DC ( one that results in a SDA or a EAR file ).
- Reference your DC from the deployable DC. This will include the generated .jar file into the project.
The definitions of the different types can be found here:
http://help.sap.com/saphelp_nw04/helpdata/en/93/d5a73f05c4265de10000000a114084/content.htm
I would either create a library component ( results in SDA ) or a web dynpro component ( ear file ). -
I need java decompiler for multiple class
Hello, i need a java decompiler for multiple class.
avoiding of decompile one to one.
ThanksUse JAD it has recursive decompiles.
-
Java Decompiler for Inner classes
Hi,
I am looking for a Java Decompiler that can handle the decompiling of inner classes fairly well. Any help will be appreciated. Thanks.dj decomplier is probably the best one. u can look for it on google.
-
Generate a thumbnail from HTML by pure Java on Linux without Graphics
hi - we in a requirement where we have to generate thumbnails from HTML code. The solution must be implemented in pure Java on Linux where there is no graphics support.
Options tried already are :--
1. 3rd party websites - rolled out by our client.
2. Paid products - rolled out by our client
3. Media Tracker and other java API - no luck as there is no support after HTML 4.0
4. Using any os dependent native library - rolled out by our client.
5. Lobo browser - but having troubles like it opens the browser before screenshot is taken, sometimes. Gone through by putting Thread.sleep() in between and saving remote images into a local html file etc. We got some success in there but problem doesn't end here.
Questions -
1. In the point # 5 above, our Linux server had graphics support but in code we set the system property java.awt.headless= true before capturing and generating thumbnail. My question is, if we set this property in the code then does it mean 100% that our code will not use any graphics support, if present in the underlying OS?
2. Is this really possible to generate images in java on Linux where there is no X window/X server installed? Are we just wasting time in order to achieve which is unachievable?
Any suggestions are most welcome.
Regards,
SanjeevThanks for ur response! Yeah - we tried but requirements are little different. We have HTML that we have to first render. Whatever output comes, we have to take a screenshot. So in order to render the html we have to have a browser first and I believe every OS which is providing browser support is having Graphics capabilities because browser would have frames, windows, toolbars, menubars etc which fall under Graphics.
The above way is the only way that I know. If there are another way which ofcourse doesn't require graphics support, please let me know.
So the question basically is - if I follow above mentioned image (like opening browser and capture screenshot) then is it possible on Linux with no graphics support? Actually I read on internet that lobo browser (written in java) supports this kind of feature. -
Could not load mediaLib accelerator wrapper classes. Continuing in pure Jav
Can anyone provide an explanation/solution to the following error message:
"Could not load mediaLib accelerator wrapper classes. Continuing in pure Java mode."This problem seems to occur if only the JAI JAR files are installed without the native DLL's. Is there some property that can be passed in to JAI so that it doesn't look for the DLL's? The lookup is causing quite a delay in initial server response time. We don't want to include the DLL's since they are a big pain for our customers to install and the performance issue is not a concern.
Thanks for any help!
-Matt -
Log4j doesn't create backup files in web-app, the same code in pure java ap
Hi all,
in my application I have a class DummyLogger, which is a superclass to all others. It provides them a log4j Logger.
In the constructor it sets up the important attributes:
log = Logger.getLogger(name+" (" + app + ") ");
log.setLevel(Level.toLevel(level));
PatternLayout defaultLayout = new PatternLayout("%p %c,line %L,%d{dd.MM.yyyy/HH:mm:ss},%m%n");
RollingFileAppender rollingFileAppender = new RollingFileAppender();
rollingFileAppender.setName(name);
rollingFileAppender.setFile(path+app+".log", true, false, 0);
rollingFileAppender.setMaxFileSize("10MB");
rollingFileAppender.setMaxBackupIndex(5);
rollingFileAppender.setLayout(defaultLayout);
log.removeAllAppenders();
log.addAppender(rollingFileAppender);
log.setAdditivity(false);Formerly I had the application as a pure java app and everything worked fine. Now I've made it a web application (I run it on WebsphereAS 5.0) and it has stopped creating the backup files. However the code remained the same.
Any ideas what has happend?
Thanks a lot,
OndraI also have the same problem. Did you find a fix?
-
Sometimes I use java decompiler, so I know so easy is to decompile a jar file and get the code.
Know, I want to make a jar file, to encrypt somethig, so I shoult have the code secret.
anyone knows how o do it?
Thanks.you can crypt .class files and write your own class loader that can read&load them normally...
you could also compile the whole think to .exe but the only prog I know of that can accomplish that is Excelsior JET... and it's big and expensive... but you can try out the trial.. -
Can clock synchronization be implemented by pure java?
I want to build a simple distributed application, whose main purpose is to synchronize the local system clock in the slave JVM with the clock in the master JVM. Can it be implemented by pure java? Or I have to use JNI to implement it?
And although the application is mainly used in LAN, the delay of transferring the data of time is small, but is there any algorithm to minimize the difference of system clock between the master and the slave?No. You can not synchronize the System Clock (clock) in 100% Pure Java.
Using The Network Time Protocol (NTP) and Java, you can access the current time from many servers around the world.
The problem here is that you can't change the clock through Java without an interface to the actaul clock.
Since the clock is a native component (application, service, or utility) you can't change it while being 100% Pure Java.
That does not mean that you can't do it at all. It just will not be Pure Java. You can, however, test to see what system you are on and then adjust the method used.
On a Windows system, the clock is set by the Control Panel applet "Date and Time." This applet can be updated using the Command Driven Interface (CDI), also known as a Command Prompt. To do this you can use the Java object Process. The parameter, a String value, should point to the location of command prompt. Then add a PrintStream object to the Process object. Send the following line (using PrintStream.println()) - "time" and "date"
To update the time use the following line:
time [ time ]
Use the time format: hh:mm:sec
To update the date use the following line:
date [ date ]
Use the date format: mm-dd-yy
This will work on Windows machines (3.x, 95, 98, Me, NT, XP) MS-DOS (all versions with Date/Time capability).
Maybe you are looking for
-
Component Video converter?
Hi, None of my equipment (tv, a/v reciever, etc) has componenet video inputs. I have composite video and s-video on my a/v receiver. Has anyone had any luck finding converters for the component video cable so that they can hook up their AppleTV to su
-
How to get to single user mode
I aquired an old power mac G4 with an old account with 10.3.9 and an old administrator account. It seems that procedures to remove the account start in Single user mode. The computer won't start when holding down system - s. The drive clicks a few
-
S/N:602-V308-06SB1403010327 Current BIOS https://drive.google.com/file/d/0B_EoPeiOdlxPdUV3WEpFdktWaDg/edit?usp=sharing
-
Plugging in my ipod freezes itunes
I was recently on vacation and when I came back my husband said iTunes had updated to the newest version. My iPod works fine, iTunes works fine, but when I plug my ipod in to sync, iTunes freezes. I hit the button to safely remove the usb mass storag
-
Can somebody tell me...
Why is it that after i've put the jam packs on my mac, garadge band sees more audio instruments than logic? I mean i have a lot of them that i like but can't find them in logic under garadge band setup. I thought it should be the same for both apps.