Java Console Doesn't Work/Show Up
I have been having an issue with the Java Plug-in Control Panel (in WinXP Control Panel) and some applications not appearing when started (ie. the java console, self-written applications, etc.). They come up in a window, but are greyed out. Sometimes the menu items and text boxes will appear when i click on the Console button, but nothing is accessible. I am running Win XP, and have reformatted and reinstalled to try to remedy this problem, but to no avail.
I tried changing the path under the advanced tab to my java install directory (from the default setting) after installation, but that did not help.
Any suggestions?
I seem to be getting the same problem. Whenever I load a Java program, including the Java plug-in in the control panel, the whole window is just grey, and I can't do anything. I have only recently re-formatted and installed. Prior to this it worked, and I'm using the same installation of Java.
Similar Messages
-
The website I use for developping my photos use a Java applet for the upload of pictures. When I try to use it with Firefox, it doesn't work but when I tried with Safari it worked.
As I use Firefox all the time and not Safari, I would like to make it work there too.
I tried by disabling all add-ons but it didn't make any difference. How can I fix it?I have enabled the Java console from the java control panel.
And the error was:
java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThread")
So I went to my java.policy file located in java.home/lib/security/ and I wrote the following
grant codeBase "url or file where the applet is" {
permission java.lang.RuntimePermission "modifyThread";
And now the applet is working.
Again, thank you for your support. -
Java console doesn't launch when starting Java Web Start app from Firefox
Updated my Linux desktop from RHEL to Fedora 12 with resultant upgrade of Firefox to 3.5.9 and now when I launch our Java Web Start application, no Java console appears. The Java Control Panel still shows "Show Console" as set. My app uses Java 1.5 which I have installed on my desktop.
What do I do to properly configure my browser/desktop to support use of the Java console?
Please help, I need to debug our app!
IlaneIlaneMarie wrote:
..Please help, I need to debug our app!Cannot tell you the answer to your FF hassles (because I have no idea why you're seeing that behaviour(1)), but note that you might be able side-step FF by launching a JWS app. using the javaws tool directly from the command line or an Ant build file.
1) Though you might try rebooting the machine if any installation/configuration changes have occurred since last boot.
Also note that many problems with JWS apps. can be sorted be checking the JNLP using JaNeLA. -
X4200M2 Java Redirection doesn't work
We recently received 4 servers. 1 server came with ILOM 1.0.1 (I think) and it was the first I set up. The Java redirection worked great! Ever since I upgraded to ILOM 1.1.1 the Java redirection has not worked. On shipping ILOM, when I chose 8 or 16 bit color, Safari had me download a jnlp file which when double-clicked, opened Java and prompted me for my ILOM password, etc. Since the upgrade to the newest version, when I click "Launch Redirection" (regardless of 8 or 16 bit) the ILOM's webserver hangs and it unresponsive. The only way I know how to get it to come back up is by pulling out the power plugs. How can I get Java redirection working again? Should I downgrade my ILOM and firmware?
Edit: I see that this is a known issue. Guess I'll wait for the next release...
Message was edited by:
aivey06Hi,
I have the same issue with a X4100 M2 server, the only way to access the remote console is by writing directly the URL.
Where did you see is a known issue? I have some other problem like, for some reason, the letter 'b' is sent continuously -
Java console doesn't open from Firefox 3 with jre 6u10
OS: XP SP3
JRE: 1.6.0_10-b33
Browser: Firefox 3.0.3
Confirmed on a new profile, when Tools->Java Console is clicked, no console and the menu item becomes disabledThanks for reporting the issue.
In 6u10, the New Java Plug-In design has detached itself from a browser process which provides a more robust and enhanced experience. Developers can launch and configure their VM settings through an Applet. As a result, there is very little association between a browser process and Java runtime environment running Applets. In addition, with the new capabilities of the New Java Plug-In, there are more chances multiple VMs are launched within a web page. Therefore, it is no longer useful to launch Java Console via the browser menu as that will cause more confusion.
See
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6644623 &
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6632149
for more info.
I have submitted a bug reoprt, however. Thanks to your report, I realize the behavior on XP and Vista is different. XP does not open JC, but Vista does open JC. I have submitted a bug for this issue. http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6760484
Thanks,
RY -
Java Script doesn't work on Firefox 8?
I have noticed that (some) Java Script does not work on Firefox 8.0. Is there a correction for this?
Yep, go back to what works, appears to be the only real solution. But then you'd hardly be able to use Firefox as nothing is going to get fixed there only get broken.
What does not work is
# move, and resize of main window not allowed
# that include wiping out a lot of keyword shortcuts that do that
# various additional collateral damage
The solutions (work arounds) that I can best offer are clumsy but can be found in
* http://kb.mozillazine.org/Resizing_oversize_window#JavaScript_no_longer_allowed_to_resize_windows -
Java plugin doesn't work, even though it's installed correctly and java programs work.
As stated. I have a link in ~/.mozilla/plugin that points to test/jre/plugin/i386/ns7/libjavaplugin_oji.so, which is the java 6 update 21 runtime environment.
Java doesn't show in about:plugins, and java applets don't start (firefox suggests to install missing plugins).
Java programs using the jre outside the browser work.
This is on Linux 32-bits, Slackware 13.0, kernel 2.6.34.<blockquote>As stated. I have a link in ~/.mozilla/plugin that points to test/jre/plugin/i386/ns7/libjavaplugin_oji.so, which is the java 6 update 21 runtime environment.
</blockquote>
Where did you read that?<br />
See http://kb.mozillazine.org/Java<br />
In Firefox 3.6 and later versions you need the Next-Generation Java™ Plug-In present in Java 6 U10 and later (Linux: libnpjp2.so; Windows: npjp2.dll).
http://java.com/en/download/faq/firefox_newplugin.xml
http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html
<pre><nowiki>ln -s /usr/local/java/jre1.6.0_20/lib/i386/libnpjp2.so libnpjp2.so
ln -s /usr/lib/jvm/jre/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/libnpjp2.so (java-1_6_0-sun-plugin)
</nowiki></pre> -
IAS console doesn't work due DCM daemon failure
Hi,
I've got a problem with IAS console recently.
When I try to open Application or Administration tabs for my OC4J Instance I get an error message:
<ias-component id="dcm-daemon">
<process-type id="dcm-daemon">
<process-set id="dcm">
<process id="650183386" pid="7996" status="Init" index="1" log="D:\oracleIASUAT\opmn\logs\dcm-daemon~dcm-daemon~dcm~1" operation="request" result="failure">
<msg code="-21" text="failed to start a managed process after the maximum retry limit">
</msg>
</process>
</process-set>
</process-type>
</ias-component>
opmnctl status shows that dcm-daemon process is down.
When I try start process
opmnctl startproc process-type=dcm-daemon
got error:
no enabled components for this request
emctl start iasconsole doesn't help
What is the problem and where look for solution?
Thanks in advance.
Edited by: Sah on Oct 15, 2009 6:02 PMContent of D:\oracleIASUAT\dcm\logs\emd_logs\log.xml
<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2009-10-15T18:05:07.844+04:00</TSTZ_ORIGINATING>
<COMPONENT_ID>DCM</COMPONENT_ID>
<MSG_TYPE TYPE="ERROR"></MSG_TYPE>
<MSG_LEVEL>1</MSG_LEVEL>
<HOST_ID>host1</HOST_ID>
<HOST_NWADDR>10.10.10.10</HOST_NWADDR>
<MODULE_ID>oracle/defaultLogger/ExceptionLogger</MODULE_ID>
<THREAD_ID>EMUI_18_05_04_/console/ias/applicationServer$type=oracle*ias$target=uat.host1</THREADID>
<USER_ID>SYSTEM</USER_ID>
</HEADER>
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID>10.10.10.10:99043:1255614349859:3</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>[TM] TaskMaster sysInit failed for D:\oracleIASUAT</MSG_TEXT>
<SUPPL_DETAIL><![CDATA[oracle.ias.sysmgmt.exception.ProcessMgmtException: Base Exception:
OPMN Request: /start?mode=sync&ias-component=dcm-daemon
OPMN Response: HTTP/1.1 204 No Content
Content-Length: 710
Content-Type: text/html
Response: 0 of 1 processes started.
<?xml version='1.0' encoding='US-ASCII'?>
<response>
<opmn id="host1:6201" http-status="204" http-response="0 of 1 processes started.">
<ias-instance id="uat.host1">
<ias-component id="dcm-daemon">
<process-type id="dcm-daemon">
<process-set id="dcm">
<process id="650183387" pid="6200" status="Init" index="1" log="D:\oracleIASUAT\opmn\logs\dcm-daemon~dcm-daemon~dcm~1" operation="request" result="failure">
<msg code="-21" text="failed to start a managed process after the maximum retry limit">
</msg>
</process>
</process-set>
</process-type>
</ias-component>
</ias-instance>
</opmn>
</response>
Resolution:
If there is no response from OPMN, check OPMN configuration and restart DCM daemon. If OPMN response is available, identify the failure and the corresponding log files indicated in the OPMN response contents
at oracle.ias.sysmgmt.clustermanagement.OpmnAgent.checkOpmnResponse(Unknown Source)
at oracle.ias.sysmgmt.clustermanagement.OpmnAgent.validateOperation(Unknown Source)
at oracle.ias.sysmgmt.clustermanagement.OpmnAgent.sendRequest(Unknown Source)
at oracle.ias.sysmgmt.task.ProcessManager.start(Unknown Source)
at oracle.ias.sysmgmt.task.TaskMaster.daemonStart(Unknown Source)
at oracle.ias.sysmgmt.task.TaskMaster.sysInit(Unknown Source)
at oracle.ias.sysmgmt.task.TaskMaster.sysInit(Unknown Source)
at oracle.ias.sysmgmt.task.InstanceManager.sysInit(Unknown Source)
at oracle.ias.sysmgmt.task.InstanceManager.init(Unknown Source)
at oracle.ias.sysmgmt.EntryPoint.init(Unknown Source)
at oracle.sysman.emSDK.eml.util.iAS.IASEntryPoint.initEntrypoint(IASEntryPoint.java:145)
at oracle.sysman.emSDK.eml.util.iAS.IASEntryPoint.getEntryPoint(IASEntryPoint.java:266)
at oracle.sysman.ias.sta.clusters.ClusterUtils.getClusterManager(ClusterUtils.java:385)
at oracle.sysman.ias.sta.ias.applicationServer.getOverview(applicationServer.java:1059)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at oracle.cabo.ui.data.provider.MethodDataProvider.getDataObject(Unknown Source)
at oracle.cabo.ui.data.provider.TableDataProvider.getDataObject(Unknown Source)
at oracle.cabo.ui.data.provider.CachingDataProvider.getDataObject(Unknown Source)
at oracle.cabo.ui.data.provider.DataProviderStack.getDataObject(Unknown Source)
at oracle.cabo.ui.LogicalNodeRenderingContext.getDataObject(Unknown Source)
at oracle.cabo.ui.RootRenderingContext.getDataObject(Unknown Source)
at oracle.cabo.ui.LogicalNodeRenderingContext.getDataObject(Unknown Source)
at oracle.cabo.ui.RootRenderingContext.getDataObject(Unknown Source)
at oracle.cabo.ui.data.DataBoundValue.getValue(Unknown Source)
at oracle.cabo.ui.data.bind.ToBooleanBoundValue.getValue(Unknown Source)
at oracle.cabo.ui.BaseUINode.getAttributeValueImpl(Unknown Source)
at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
at oracle.cabo.ui.BaseRenderer.skipNode(Unknown Source)
at oracle.cabo.ui.BaseRenderer.skipChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.getNextRenderedChildIndex(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.oracle.desktop.PageLayoutRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.BodyRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderNamedChild(Unknown Source)
at oracle.cabo.ui.laf.base.SwitcherRenderer._renderCase(Unknown Source)
at oracle.cabo.ui.laf.base.SwitcherRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.base.DataScopeRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.BodyRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.servlet.ui.UINodePageRenderer.renderPage(Unknown Source)
at oracle.cabo.servlet.AbstractPageBroker.renderPage(Unknown Source)
at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
at oracle.cabo.servlet.UIXServlet.doGet(Unknown Source)
at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:347)
at oracle.sysman.eml.app.Console.doGet(Console.java:271)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:837)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
]]></SUPPL_DETAIL>
</PAYLOAD>
</MESSAGE> -
SeaMonkey v2.0.4's Java applets doesn't work all the time.
Hello. I use Mozilla's SeaMonkey v2.0.4 (using binary from mozilla.org) in Debian/Linux. I can get Java applets to work on https://eetime11.adp.com/c08e/logon but not on http://javatester.org, http://java.com/en/download/installed.jsp, and http://java.com/en/download/help/testvm.xml
Java Plug-in 1.6.0_20
Using JRE version 1.6.0_20-b02 Java HotSpot(TM) Client VM
User home directory = /home/ant
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
load: class testvm2/Main.class not found.
java.lang.ClassNotFoundException: testvm2.Main.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
FYI on my setups:
$ pwd
/home/Programs/seamonkey2/plugins
$ ls -all
total 28
drwxr-xr-x 2 ant ant 4096 2010-04-15 15:46 .
drwxr-xr-x 15 ant ant 4096 2010-04-16 08:32 ..
lrwxrwxrwx 1 root root 32 2009-11-27 17:19 libflashplayer.so -> /home/Programs/libflashplayer.so
lrwxrwxrwx 1 root root 63 2010-04-15 15:46 libjavaplugin_oji.so -> /home/Programs/jre1.6.0_20/plugin/i386/ns7/libjavaplugin_oji.so
-rwxr-xr-x 1 ant ant 15824 2009-10-17 09:30 libnullplugin.so
$ ls -all /home/Programs/jre1.6.0_20/plugin/i386/ns7/libjavaplugin_oji.so
-rwxr-xr-x 1 ant ant 137021 2010-04-12 14:39 /home/Programs/jre1.6.0_20/plugin/i386/ns7/libjavaplugin_oji.so
Does anyone know why? Thank you in advance. :)
Edited by: antdude on Apr 16, 2010 8:37 AMMore poking around:
$ java -version
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8pre) (6b18~pre2-1)
OpenJDK Server VM (build 14.0-b16, mixed mode)
# dpkg -l | grep ^ii |grep java
ii ca-certificates-java 20091021 Common CA certificates (JKS keystore)
ii java-common 0.35 Base of all Java packages
ii libaccess-bridge-java 1.26.2-4 Java Access Bridge for GNOME
ii libaccess-bridge-java-jni 1.26.2-4 Java Access Bridge for GNOME (jni bindings)
ii libhsqldb-java 1.8.0.10-6 Java SQL database engine
ii liblucene2-java 2.9.2+ds1-1 Full-text search engine library for Java(TM)
ii libservlet2.4-java 5.0.30-12 Servlet 2.4 and JSP 2.0 Java library
ii openoffice.org-java-common 1:3.2.0-4 full-featured office productivity suite -- arch-independent Java support files
ii tzdata-java 2010h-1 time zone and daylight-saving time data for use by java runtimes
# dpkg -l | grep ^ii |grep jre
# locate bin/java
/home/Programs/jre1.6.0_20/bin/java
/home/Programs/jre1.6.0_20/bin/java_vm
/home/Programs/jre1.6.0_20/bin/javaws
/usr/bin/java
/usr/bin/javaws
/usr/lib/jvm/java-6-openjdk/bin/java
/usr/lib/jvm/java-6-openjdk/bin/java-rmi.cgi
/usr/lib/jvm/java-6-openjdk/bin/javaws
/usr/lib/jvm/java-6-openjdk/jre/bin/java
/usr/lib/jvm/java-6-openjdk/jre/bin/javaws
/usr/lib/jvm/java-6-openjdk/jre/bin/javaws.real
I tried to uninstall all the unneccesary Java packages, but still had some can't be removed because of other programs requiring it like OpenOffice:
# apt-get remove openjdk-6-jre-headless
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
openoffice.org-filter-mobiledev ttf-sil-gentium ttf-sil-gentium-basic
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
ca-certificates-java libaccess-bridge-java libaccess-bridge-java-jni libhsqldb-java liblucene2-java libservlet2.4-java
openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib openoffice.org openoffice.org-base openoffice.org-officebean
openoffice.org-report-builder-bin
0 upgraded, 0 newly installed, 13 to remove and 125 not upgraded.
After this operation, 114MB disk space will be freed.
Do you want to continue [Y/n]? n
Abort.
# apt-get remove java-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
openoffice.org-filter-mobiledev ttf-sil-gentium ttf-sil-gentium-basic
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
ca-certificates-java java-common libaccess-bridge-java libaccess-bridge-java-jni libhsqldb-java liblucene2-java
libservlet2.4-java openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib openoffice.org openoffice.org-base
openoffice.org-officebean openoffice.org-report-builder-bin
0 upgraded, 0 newly installed, 14 to remove and 125 not upgraded.
After this operation, 115MB disk space will be freed.
Do you want to continue [Y/n]? n
Abort.
Any ideas? :( -
My Admin Console doesn't work properly
I'm J2e novice. I've just installed J2EE bundle and noticed that something is wrong:
1) Whenever I start Admin Console for domain1 (default settings) it looks and works worse than Samples Server Admin Console. Compare the screenshots on http://astro.ia.uz.zgora.pl/~nirgal/problem/sas.htm
2) I can't undeploy any web application (the undeploy button inactive -> see screenshots) using the Admin Console whereas undeploying on Samples Server works properly.
3) In general there is many error messages at the bottom edge of Admine Console window during any session.
Greetings
MaciejThere are "Error on page" errors only (displayed on the bottom info bar in the window).
These are warnings I found in the server.log:
1) Spaces in your PATH have been detected. The PATH must be consistently formated (e.g. C:\Program Files\Java\jdk1.5.0\bin; ) or the Appserver may not be able to start and/or stop. Mixed quoted spaces in your PATH can cause problems, so the launcher will remove all double quotes before invoking the process. The most reliable solution would be to remove all spaces from your path before starting the Appservers components.
(I found no spaces in my PATH )
2) default-locale attribute of locale-charset-info element has been deprecated and is being ignored. Use default-charset attribute of parameter-encoding element instead
3) C:\Sun\AppServer\lib\install\applications\admingui\adminGUI_war\index_pl.html File Not Found
(I found index.html in this directory. When I checked the file name to index_pl.html it didn't help.)
Hello2 works properly, and there are no hello2 related errors. But I still can't undeploy it using Admin Console due to inactive 'Undeploy' button (I marked the hello2 checkbox). -
Java plugin doesn't work on firefox 3.5.6 linux
Hi, i don't know what happenned since until yesterday everything worked alright, but now instead of a java applet in the correct place on a web page i get an error. This is what says:
Java Plug-in 1.6.0_16
Usar versión JRE 1.6.0_16-b01 Java HotSpot(TM) Client VM
Directorio local del usuario = /home/freehost
c: borrar ventana de consola
f: finalizar objetos en la cola de finalización
g: liberación de recursos
h: presentar este mensaje de ayuda
l: volcar lista del cargador de clases
m: imprimir sintaxis de memoria
o: activar registro
q: ocultar consola
r: recargar configuración de norma
s: volcar propiedades del sistema y de despliegue
t: volcar lista de subprocesos
v: volcar pila de subprocesos
x: borrar antememoria del cargador de clases
0-5: establecer nivel de rastreo en <n>
cargar: clase JAVACharter/Charter.class no encontrada.
java.lang.ClassNotFoundException: JAVACharter.Charter.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:152)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Plugin2ClassLoader.java:445)
at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:2880)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1397)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Network is unreachable
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:525)
at sun.net.NetworkClient.doConnect(NetworkClient.java:161)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:323)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:860)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:726)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Applet2ClassLoader.java:458)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Applet2ClassLoader.java:46)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Applet2ClassLoader.java:126)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:123)
... 6 more
Excepción: java.lang.ClassNotFoundException: JAVACharter.Charter.class
I'm on debian squeeze. Thanks in advancei have met the issue, and want to know to know how to solve it?
-
Java JPopupMenu doesn't work on OSX
Using OSX 10.6.4 and Java 1.6.0_22, the JPopupMenu doesn't appear to work.
Simple code:
public static void main(String args[]){
final JPopupMenu popup = new JPopupMenu();
popup.add(new JMenuItem("first"));
JMenu sub = new JMenu("sub");
sub.add(new JMenuItem("next level"));
popup.add(sub);
popup.setVisible(true);
The 'first' item does respond if you click it, but the sub menu will never open, nor will the first item respond to a mouse over.
Any ideas? Help would be very much appreciatedYep, go back to what works, appears to be the only real solution. But then you'd hardly be able to use Firefox as nothing is going to get fixed there only get broken.
What does not work is
# move, and resize of main window not allowed
# that include wiping out a lot of keyword shortcuts that do that
# various additional collateral damage
The solutions (work arounds) that I can best offer are clumsy but can be found in
* http://kb.mozillazine.org/Resizing_oversize_window#JavaScript_no_longer_allowed_to_resize_windows -
HT5642 Java applet doesn't work on my Mac
I have the new Mountain Lion 10.82 software version on my Mac as I needed it to be able to use java applet update 11. I downloaded and installed the security fix java update 11 on 27th January 2013 and it worked for a couple of days fine but now a sign with "blocked plug-in" appears. Even after installing it again it doesn't seem to work. Could anybody please help me?
There's apparently another security bug in Java.
Depending on what you're working with, you may be able to download and invoke the application outside of the browser — such as can be done with Minecraft — or you can both enable the Java JVM plug-in within the browser and also disable the version-check defenses in Xprotect (see the comments here for details) that are blocking the Java webstart stuff (again), if you need to run that stuff from the web browser.
Otherwise, Oracle will likely be providing an update to block the most recent attacks.
There are two other potential wrinkles here, where the Java JVM web plug-in disables itself after some interval of non-use, and there are also diagnostics issued when launching an app that isn't signed by a developer ID from Apple. Java checks for its own signatures, and Apple checks for its signatures, and the Java apps aren't signed with the Apple keys. -
Java application doesn't work with utf8 encoding in linux?
I use Linux OS and local i18n resource file for Java internalization. Below is my source code. The Frame title can be internalized without any problem, but the button text can't be shown correctly. What is the problem with my code? It works fine in Windows XP.
Locale locale = new Locale("zh", "CN");
Locale.setDefault(locale);
ResourceBundle rb = ResourceBundle.getBundle("ui/demo/i18n/ui_demo",locale);
System.out.println(rb.getString("OK"));
JFrame frame = new JFrame("");
frame.setTitle(rb.getString("OK"));
JButton button = new JButton(rb.getString("OK"));
frame.add(button);
frame.setSize(100, 100);
frame.setVisible(true);masijade. wrote:
What is the default encoding of the system, and what character encoding is used in the file?
If they are both the same, no problem, if not, then you're going to have to do some converting.
Edit: of course, I thought that Java used "?" for unknown characters. So, the "black boxes", might also, possibly, be font problems.
Both of these are only educated guesses, don't take them as Gospel (and, in all likelyhood, they are probably both at least slightly off-base).thanks for this information. But if the problem is OS encoding, why the Frame title can be shown correctly? -
My java code doesn't work the way it should
Hello can someone tell me why this code isn't printing on my linux computer?
I found something about a bug in java for printing with linux see link.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6181488
I hope someone can help me.
import javax.print.*;
import javax.print.attribute.*;
import java.io.*;
import java.awt.BasicStroke;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.geom.CubicCurve2D;
import java.awt.print.PageFormat;
import java.awt.print.Printable;
import javax.print.Doc;
import javax.print.DocFlavor;
import javax.print.DocPrintJob;
import javax.print.PrintException;
import javax.print.PrintService;
import javax.print.PrintServiceLookup;
import javax.print.SimpleDoc;
import javax.print.attribute.DocAttributeSet;
import javax.print.attribute.HashDocAttributeSet;
import javax.print.attribute.HashPrintRequestAttributeSet;
import javax.print.attribute.PrintRequestAttributeSet;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class PrintingOneTwoFour {
static class MyComponent extends JPanel implements Printable {
public void paint(Graphics g) {
Graphics2D g2d = (Graphics2D) g;
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
g2d.setPaint(Color.BLUE);
g2d.setStroke(new BasicStroke(3));
CubicCurve2D cubic = new CubicCurve2D.Float(10, 80, 60, 30, 110, 130, 160, 80);
g2d.draw(cubic);
public int print(Graphics g, PageFormat pageFormat, int pageIndex) {
if (pageIndex == 0) {
paint(g);
return Printable.PAGE_EXISTS;
} else {
return Printable.NO_SUCH_PAGE;
public static void main(String args[]) throws Exception {
final JFrame frame = new JFrame();
Container contentPane = frame.getContentPane();
final Component printIt = new MyComponent();
contentPane.add(printIt, BorderLayout.CENTER);
JButton button = new JButton("Print");
contentPane.add(button, BorderLayout.SOUTH);
ActionListener listener = new ActionListener() {
public void actionPerformed(ActionEvent e) {
DocFlavor flavor = DocFlavor.SERVICE_FORMATTED.PRINTABLE;
// PrintService printService = PrintServiceLookup
// .lookupDefaultPrintService();
PrintService[] services = null;
PrintService myPrinter = null;
// DocFlavor myFlavor = DocFlavor.INPUT_STREAM.POSTSCRIPT;
PrintRequestAttributeSet jobAttrs = new HashPrintRequestAttributeSet();
services = PrintServiceLookup.lookupPrintServices( flavor, jobAttrs );
if ( System.getProperty( "os.name" ).startsWith( "Windows" ) )
myPrinter = PrintServiceLookup.lookupDefaultPrintService();
else {
try {
Process child = Runtime.getRuntime().exec(new String[] { "/bin/sh", "-c", "echo ${PRINTER:-$LPDEST}" });
BufferedReader rdr = new BufferedReader(new InputStreamReader( child.getInputStream() ));
String envPrinter = rdr.readLine().trim();
System.out.println("Printer "+envPrinter+rdr.readLine());
child.destroy();
for ( int i=0; myPrinter == null && i<services.length; i++ )
if ( services.getName().equals( envPrinter ) )
myPrinter = services[i];
System.out.println("myPrinter "+myPrinter);
catch ( Exception ignore )
System.out.println("Exception "+ignore);
if(myPrinter==null)
myPrinter = services[0];
System.out.println("myPrinter == null "+myPrinter);
DocPrintJob job = myPrinter.createPrintJob();
DocAttributeSet das = new HashDocAttributeSet();
Doc doc = new SimpleDoc(printIt, flavor, das);
try {
job.print(doc, jobAttrs);
} catch (PrintException pe) {
pe.printStackTrace();
button.addActionListener(listener);
frame.setSize(350, 350);
frame.show();Nobody????????????
Maybe you are looking for
-
After data recovery, HD is a mess
I recently had my hard drive die on my powermac G5 and my Clickfree external backup hard drive also failed. Sob! I sent the dead drive to a data recovery service and they say they restored everything. Send back my restored data on an external hard dr
-
Will someone please tell me how to change the name of a folder I created in "Pages" and saved to the "Cloud"? Thanks.
-
If i edit a photo in iPhoto on an ipad will iPhoto on my macbook pro have the edited version as well
If i edit a photo on iphoto on my ipad and then conect it to my laptop will it save the changes i made the photos on the ipad or will it revert them to the original version which is the verion they are on the macbook pro?
-
How can I get itunes on my pc laptop to recognize my ipad
how can I get itunes on my pc laptop to recognize my ipad
-
Hi, My NWDS is not starting, I really need urgent help, I am no clue what might be the error. The log file contains the following error. !SESSION Jan 10, 2006 12:00:02.187 - java.version=1.4.2_06 java.vendor=Sun Microsystems Inc. BootLoader constants