Need help on eclipse kepler
!SESSION 2015-08-05 20:43:24.987 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product dk.dtu.imm.red.core.rcp.red_product
Command-line arguments: -product dk.dtu.imm.red.core.rcp.red_product -data C:\Users\Puvishanan\red/../runtime-dk.dtu.imm.red.product -dev file:C:/Users/Puvishanan/red/.metadata/.plugins/org.eclipse.pde.core/dk.dtu.imm.red.product/dev.properties -os win32 -ws win32 -arch x86_64 -consoleLog
!ENTRY org.eclipse.osgi 4 0 2015-08-05 20:43:27.065
!MESSAGE Application error
!STACK 1
org.eclipse.core.runtime.CoreException: Plug-in dk.dtu.imm.red.core.rcp was unable to load class dk.dtu.imm.red.core.rcp.Application.
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:176)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:191)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
Caused by: java.lang.ClassNotFoundException: dk.dtu.imm.red.core.rcp.Application cannot be found by dk.dtu.imm.red.core.rcp_1.0.0.qualifier
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
... 16 more
The Danish RED plugin is a third party tool. You should contact the author.
The only reference I found is the diploma thesis of Machiej Kucharek, done at the Technical University of Denmark (www.imm.dtu.dk).
Similar Messages
-
Asking for help to install SAP UI5 in Eclipse Kepler?
Can you provide me the navigation for installing the SAP UI5 development tools in Eclipse Kepler? I was to find the attached folder while creating the project. And can you send me any link to download the
HTML5Evaluation_complete.zip ?????
I got the procedure in the link given, where the file is needed.
The link is: _D:\SAP UI development\UI_Development_Toolkit_for_HTML5_Version_SAPUI5_1_16_3_278_MB\Readme_and_InstallationInformation.html
Please get back to me with the solution.
Thanks & Regards,
Joyjit Biswas
Mob: (+91) 9538730540
Email: [email protected]Did you try downloading from this link
http://download.store.sap.com/SCN/UI_Development_Toolkit_for_HTML5/UI_Development_Toolkit_for_HTML5_Version_SAPUI5_1_16_… -
Need help startng websphere server in eclipse for debugging porpose
I am using Eclipse Sdk Version: 3.1.2
IBM websphere 6.0
JDK 1.4
I set debug value to "true" in my application.xml
I have a .ear file of my application deployed on the websphere appserver. Currently I can test my application in nobebug mode.
values of environment variables are -
JAVA_HOME - C:\DEV\IBMJDK142; C:\Program Files\Java\jre1.6.0_03
PATH - C:\DEV\IBMJDK142\bin; C:\Program Files\IBM\WebSphere MQ\Java\lib;C:\DEV\IBMJDK142\bin;%SystemRoot%\system32;%SystemRoot%;
I want to test the application in debug mode.
I am using default server on websphere, which is server1.
In Admin-console of webshere I went to
server-->Application server-->choose server1-->Debugging Service ---->checked the checkbox "Enable service at server startup"
Here value of my JVM debug port is 7777.
next In Eclipse env I chose Run---->Debug....--->Remote Java Application ----> created a new application with the name of my application and set the connection properties to -
Host - localhost
port-7777
Eclipse----> Windows----->Preferences---->Server----->Installed Runtime---->Add---->selected values such as -
JRE - default JRE(JDK 1.4)
IBM Websphere Installation Directory - C:/DEV/WebSphere/AppServer
saved it.
Now in debug perspective, I created a new server with selection/values such as -
IBM--->IBM Websphere v6---->
port - 9081
server profile directory - C:/DEV/WebSphere/AppServer/profiles/default
cell - GCWSNTRANode01Cell
node - GCWSNTRANode01
server - server1
Next---->Added the project to configured project ----->FINISH
Closed Eclipse to save env settings.
Started the default server (server1)
opened eclipse - desired project--->debug perspective ---->choose server--->Right Click----Start/Debug
mesg "Starting ServerI BM Websphere 6 - IBM Websphere 6 failed to start"
can some one please tell me what I am missing here.Need help startng websphere server in eclipse for debugging porpose
can some one please tell me what I am missing here. Well for one, you're trying to debug a dolphin
Edited by: redfalconf35 on Jun 19, 2008 4:50 PM -
Cannot update software in Eclipse Kepler
Hi,
I am trying to update the software within the eclipse Kepler for SAP plug-ins. However, I encountered an error message saying that repository is not found. Could any expert help me resolve this issue? The error message is attached for reference.No need to uninstall, just run the installer to replace the current system folders.
If that doesn't work and you need to erase and install, come back here and we'll give instructions or point you to where you can find them.
Likelihood is though that you only need to run the install disc 2 to restore your iLife applications.
If your profile is correct (10.6.4) you won't have the app store; it wasn't introduced until 10.6.6.
If you want it, the last update for Snow Leopard is 10.6.8 (this includes additional security features) which you can download from http://support.apple.com/kb/DL1399 -
Eclipse Kepler Crashed On Jrockit
Eclipse Kepler often crashed. below is the dump. Any solution or workaround? Thanks
===== BEGIN DUMP =============================================================
JRockit dump produced after 0 days, 01:34:00 on Thu Dec 26 14:54:28 2013
* If you see this dump, please go to *
* http://download.oracle.com/docs/cd/E15289_01/go2troubleshooting.html *
* for troubleshooting information. *
Additional information is available in:
/home/qianjia/jrockit.13580.dump
No snapshot file (core dump) will be created because core dumps have been
disabled. To enable core dumping, try "ulimit -c unlimited"
before starting JRockit again.
Error Message: Illegal memory access. [54]
Signal info : si_signo=11, si_code=2 si_addr=0x7f5788df4ff8
Version : Oracle JRockit(R) R28.2.5-20-152429-1.6.0_37-20120927-1915-linux-x86_64
CPU : Intel (HT) SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 Intel64
Number CPUs : 4
Tot Phys Mem : 8163487744 (7785 MB)
OS version : wheezy/sid
Linux version 3.8.0-34-generic (buildd@roseapple) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) ) #49-Ubuntu SMP Tue Nov 12 18:00:10 UTC 2013 (x86_64)
Thread System: Linux NPTL
LibC release : 2.17-stable
Java locking : Lazy unlocking enabled (class banning) (transfer banning)
State : JVM is running
Command Line : -Dosgi.requiredJavaVersion=1.6 -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m -Xss2m -XX:+CheckStacks -Dsun.java.command=/home/qianjia/eclipse-kelper//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar -data /home/qianjia/workspace-schools/workspace-chongke -os linux -ws gtk -arch x86_64 -showsplash /home/qianjia/eclipse-kelper//plugins/org.eclipse.platform_4.3.1.v20130911-1000/splash.bmp -launcher /home/qianjia/eclipse-kelper/eclipse -name Eclipse --launcher.library /home/qianjia/eclipse-kelper//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130807-1835/eclipse_1506.so -startup /home/qianjia/eclipse-kelper//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar --launcher.appendVmargs -exitdata 12d000f -product org.eclipse.epp.package.jee.product -vm /usr/lib/jvm/java-6/bin/java -vmargs -Dosgi.requiredJavaVersion=1.6 -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m -Xss2m -XX:+CheckStacks -jar /home/qianjia/eclipse-kelper//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar -Dsun.java.launcher=SUN_STANDARD /home/qianjia/eclipse-kelper//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar -data /home/qianjia/workspace-schools/workspace-chongke -os linux -ws gtk -arch x86_64 -showsplash /home/qianjia/eclipse-kelper//plugins/org.eclipse.platform_4.3.1.v20130911-1000/splash.bmp -launcher /home/qianjia/eclipse-kelper/eclipse -name Eclipse --launcher.library /home/qianjia/eclipse-kelper//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130807-1835/eclipse_1506.so -startup /home/qianjia/eclipse-kelper//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar --launcher.appendVmargs -exitdata 12d000f -product org.eclipse.epp.package.jee.product -vm /usr/lib/jvm/java-6/bin/java -vmargs -Dosgi.requiredJavaVersion=1.6 -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m -Xss2m -XX:+CheckStacks -jar /home/qianjia/eclipse-kelper//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
Repository :
java.home : /usr/lib/jvm/jrockit-jdk1.6.0_37-R28.2.5-4.1.0/jre
j.class.path : /home/qianjia/eclipse-kelper//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
j.lib.path : /usr/java/packages/lib/amd64:/usr/lib/jvm/jrockit-jdk1.6.0_37-R28.2.5-4.1.0/jre/lib/amd64/jrockit:/usr/lib/jvm/jrockit-jdk1.6.0_37-R28.2.5-4.1.0/jre/lib/amd64:/usr/lib/jvm/jrockit-jdk1.6.0_37-R28.2.5-4.1.0/jre/../lib/amd64
JAVA_HOME : <not set>
_JAVA_OPTIONS: <not set>
LD_LIBRARY_PATH: /usr/lib/jvm/jrockit-jdk1.6.0_37-R28.2.5-4.1.0/jre/lib/amd64/jrockit:/usr/lib/jvm/jrockit-jdk1.6.0_37-R28.2.5-4.1.0/jre/lib/amd64:/usr/lib/jvm/jrockit-jdk1.6.0_37-R28.2.5-4.1.0/jre/../lib/amd64
LD_ASSUME_KERNEL: <not set>
LD_PRELOAD : <not set>
StackOverFlow: 1 StackOverFlowError has occured
OutOfMemory : 0 OutOfMemoryErrors have occured
C Heap : Good; no memory allocations have failed
GC Strategy : Mode: throughput, with strategy: genparpar (basic strategy: genparpar)
GC Status : OC is not running. Last finished OC was OC#37.
: YC is not running. Last finished YC was YC#68.
YC Promotion : Last YC successfully promoted all objects
YC History : Ran 1 YCs before OC#33.
: Ran 1 YCs before OC#34.
: Ran 1 YCs before OC#35.
: Ran 1 YCs before OC#36.
: Ran 1 YCs before OC#37.
: Ran 0 YCs since last OC.
Heap : 0xc0000000 - 0xe0000000 (Size: 512 MB)
Compaction : (no compaction area)
Allocation : TLA-min: 2048, TLA-preferred: 65536 TLA-waste limit: 2048
NurseryList : 0xc5c5c700 - 0xd1fbbef8
KeepArea : 0xcecd8290 - 0xd1fbbef8
KA Markers : [ 0xcbc91cc8, 0xcecd8290 , 0xd1fbbef8 ]
Forbidden A : (none)
Previous KA : 0xce694e98 - 0xd18c7128
Previous FA : (none)
CompRefs : References are compressed, with heap base 0x0 and shift 0.
Registers (from ThreadContext: 0x7f5788df4bc0:
rax = 0000000000000000 rcx = 0000000000000080
rdx = 000000000000001f rbx = 00007f5788df5660
rsp = 00007f5788df5000 rbp = 00007f5788df5650
rsi = 00007f570af3f988 rdi = 00007f5788df5660
r8 = 000000000000000b r9 = 0000000000000064
r10 = 0000000000000007 r11 = 00007f5784000078
r12 = 00007f570af3f988 r13 = 000000000000001f
r14 = 00007f5788df5888 r15 = 00000000ffffffff
cs = 0000000000000033 fs = 0000000600000000
gs = 0006000000000000
rip = 00007f5789f8ba17 flags = 0000000000000202
Loaded modules:
(* denotes the module where the exception occured)
0000000000400000-00000000004128a3 /usr/lib/jvm/jrockit-jdk1.6.0_37-R28.2.5-4.1.0/bin/java
00007fffcf56f000-00007fffcf56fd9c /usr/lib/jvm/jrockit-jdk1.6.0_37-R28.2.5-4.1.0/bin/java
00007f578a4f5000-00007f578a4f7067 /lib/x86_64-linux-gnu/libdl.so.2
00007f578a2d8000-00007f578a2ef127 /lib/x86_64-linux-gnu/libpthread.so.0
00007f5789f0f000-00007f578a0cd1a7 */lib/x86_64-linux-gnu/libc.so.6
00007f578a6f9000-00007f578a71b4ef /lib64/ld-linux-x86-64.so.2
00007f578992d000-00007f5789c34f33 /usr/lib/jvm/jrockit-jdk1.6.0_37-R28.2.5-4.1.0/jre/lib/amd64/jrockit/libjvm.so
00007f578970b000-00007f578972a21b /usr/lib/jvm/jrockit-jdk1.6.0_37-R28.2.5-4.1.0/jre/lib/amd64/libjrosal.so
00007f57894fe000-00007f578950a553 /usr/lib/jvm/jrockit-jdk1.6.0_37-R28.2.5-4.1.0/jre/lib/amd64/libjrutil.so
00007f57891f9000-00007f57892fbdd3 /lib/x86_64-linux-gnu/libm.so.6
00007f5788ff1000-00007f5788ff7963 /lib/x86_64-linux-gnu/librt.so.1
00007f5788be7000-00007f5788beed4b /lib/x86_64-linux-gnu/libnss_compat.so.2
00007f57889cd000-00007f57889e35e7 /lib/x86_64-linux-gnu/libnsl.so.1
00007f57887c1000-00007f57887cb053 /lib/x86_64-linux-gnu/libnss_nis.so.2
00007f57885b4000-00007f57885bf4cb /lib/x86_64-linux-gnu/libnss_files.so.2
00007f57883a5000-00007f57883b12b3 /usr/lib/jvm/jrockit-jdk1.6.0_37-R28.2.5-4.1.0/jre/lib/amd64/libjfr.so
00007f5788016000-00007f5788022317 /usr/lib/jvm/jrockit-jdk1.6.0_37-R28.2.5-4.1.0/jre/lib/amd64/libverify.so
00007f5741ecf000-00007f5741ef7283 /usr/lib/jvm/jrockit-jdk1.6.0_37-R28.2.5-4.1.0/jre/lib/amd64/libjava.so
00007f5741d44000-00007f5741d4a5bf /usr/lib/jvm/jrockit-jdk1.6.0_37-R28.2.5-4.1.0/jre/lib/amd64/native_threads/libhpi.so
00007f5740bf7000-00007f5740c04c03 /usr/lib/jvm/jrockit-jdk1.6.0_37-R28.2.5-4.1.0/jre/lib/amd64/libzip.so
00007f570bdef000-00007f570bdfdd73 /home/qianjia/eclipse-kelper/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130807-1835/eclipse_1506.so
00007f570bb20000-00007f570bbcc30b /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
00007f570b913000-00007f570b91de8b /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0
00007f570b6c8000-00007f570b70fd1b /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0
00007f570b4a8000-00007f570b4c5ba3 /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0
00007f570b14e000-00007f570b2a0853 /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
00007f570aeff000-00007f570af4b57b /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
00007f570ac03000-00007f570acfbceb /lib/x86_64-linux-gnu/libglib-2.0.so.0
00007f570a9c9000-00007f570a9fff03 /usr/lib/x86_64-linux-gnu/libfontconfig.so.1
00007f570a7bf000-00007f570a7c78c3 /usr/lib/x86_64-linux-gnu/libXrender.so.1
00007f570a5bc000-00007f570a5bd6fb /usr/lib/x86_64-linux-gnu/libXinerama.so.1
00007f570a3ac000-00007f570a3b9d7b /usr/lib/x86_64-linux-gnu/libXi.so.6
00007f570a1a2000-00007f570a1aa683 /usr/lib/x86_64-linux-gnu/libXrandr.so.2
00007f5709f97000-00007f5709f9fe8b /usr/lib/x86_64-linux-gnu/libXcursor.so.1
00007f5709d94000-00007f5709d95a7b /usr/lib/x86_64-linux-gnu/libXcomposite.so.1
00007f5709b91000-00007f5709b9282b /usr/lib/x86_64-linux-gnu/libXdamage.so.1
00007f570998b000-00007f570998fb13 /usr/lib/x86_64-linux-gnu/libXfixes.so.3
00007f5709687000-00007f5709784ff3 /usr/lib/x86_64-linux-gnu/libcairo.so.2
00007f570934d000-00007f5709480863 /usr/lib/x86_64-linux-gnu/libX11.so.6
00007f570913b000-00007f570914b0e3 /usr/lib/x86_64-linux-gnu/libXext.so.6
00007f5708f27000-00007f5708f3938b /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0
00007f5708c8a000-00007f5708d20423 /usr/lib/x86_64-linux-gnu/libfreetype.so.6
00007f5708a86000-00007f5708a8847b /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0
00007f570886f000-00007f5708884bdb /lib/x86_64-linux-gnu/libz.so.1
00007f5708650000-00007f570866c703 /lib/x86_64-linux-gnu/libselinux.so.1
00007f5708436000-00007f570844b80f /lib/x86_64-linux-gnu/libresolv.so.2
00007f570822e000-00007f57082348f3 /usr/lib/x86_64-linux-gnu/libffi.so.6
00007f5707fef000-00007f570802bc5b /lib/x86_64-linux-gnu/libpcre.so.3
00007f5707dc6000-00007f5707debd1b /lib/x86_64-linux-gnu/libexpat.so.1
00007f5707b2e000-00007f5707bbdeb3 /usr/lib/x86_64-linux-gnu/libpixman-1.so.0
00007f5707908000-00007f570792c6bb /lib/x86_64-linux-gnu/libpng12.so.0
00007f5707705000-00007f5707706483 /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0
00007f57074fb000-00007f57075026ab /usr/lib/x86_64-linux-gnu/libxcb-render.so.0
00007f57072dd000-00007f57072f9963 /usr/lib/x86_64-linux-gnu/libxcb.so.1
00007f5707046000-00007f57070da40b /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0
00007f5706e42000-00007f5706e43ed3 /usr/lib/x86_64-linux-gnu/libXau.so.6
00007f5706c3c000-00007f5706c405f3 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6
00007f5706a07000-00007f5706a386fb /usr/lib/x86_64-linux-gnu/libicule.so.48
00007f570669c000-00007f57067f1462 /usr/lib/x86_64-linux-gnu/libicuuc.so.48
00007f5706399000-00007f570647d545 /usr/lib/x86_64-linux-gnu/libstdc++.so.6
00007f5706183000-00007f5706196fbb /lib/x86_64-linux-gnu/libgcc_s.so.1
00007f5704e13000-00007f5705f81383 /usr/lib/x86_64-linux-gnu/libicudata.so.48
00007f57047da000-00007f5704c0681b /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
00007f57045b8000-00007f57045d716b /usr/lib/x86_64-linux-gnu/libatk-1.0.so.0
00007f5704382000-00007f5704392923 /usr/lib/x86_64-linux-gnu/gtk-2.0/modules/liboverlay-scrollbar.so
00007f5704151000-00007f570417f9cb /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libmurrine.so
00007f5703f4b000-00007f5703f4f933 /usr/lib/x86_64-linux-gnu/gtk-2.0/modules/libcanberra-gtk-module.so
00007f5703d46000-00007f5703d49753 /usr/lib/x86_64-linux-gnu/libcanberra-gtk.so.0
00007f5703b36000-00007f5703b4476b /usr/lib/x86_64-linux-gnu/libcanberra.so.0
00007f570392e000-00007f5703934b3b /usr/lib/x86_64-linux-gnu/libvorbisfile.so.3
00007f570371c000-00007f570372bfeb /usr/lib/x86_64-linux-gnu/libtdb.so.1
00007f5703512000-00007f570351a2bb /usr/lib/x86_64-linux-gnu/libltdl.so.7
00007f57032e5000-00007f570330fea3 /usr/lib/x86_64-linux-gnu/libvorbis.so.0
00007f57030de000-00007f57030e37b3 /usr/lib/x86_64-linux-gnu/libogg.so.0
00007f5702e8c000-00007f5702e96123 /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
00007f570245c000-00007f570245ef13 /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-bmp.so
00007f57018e4000-00007f57018f6d17 /usr/lib/jvm/jrockit-jdk1.6.0_37-R28.2.5-4.1.0/jre/lib/amd64/libnet.so
00007f570179c000-00007f57017a2a03 /usr/lib/jvm/jrockit-jdk1.6.0_37-R28.2.5-4.1.0/jre/lib/amd64/libnio.so
00007f5701595000-00007f570159af9b /usr/lib/jvm/jrockit-jdk1.6.0_37-R28.2.5-4.1.0/jre/lib/amd64/liborii.so
00007f56daa21000-00007f56daa9ed5b /home/qianjia/eclipse-kelper/configuration/org.eclipse.osgi/bundles/659/1/.cp/libswt-gtk-4333.so
00007f56da7aa000-00007f56da81c2db /home/qianjia/eclipse-kelper/configuration/org.eclipse.osgi/bundles/659/1/.cp/libswt-pi-gtk-4333.so
00007f56da5a8000-00007f56da5a89e3 /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0
00007f56da32e000-00007f56da3328c3 /usr/lib/x86_64-linux-gnu/libXtst.so.6
00007f56da12a000-00007f56da12c2db /usr/lib/x86_64-linux-gnu/pango/1.8.0/modules/pango-basic-fc.so
00007f56d9e3b000-00007f56d9e3efeb /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so
00007f56d9bee000-00007f56d9bfa65b /home/qianjia/eclipse-kelper/configuration/org.eclipse.osgi/bundles/659/1/.cp/libswt-cairo-gtk-4333.so
00007f56d99a7000-00007f56d99ac97b /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so
00007f56d9744000-00007f56d9786853 /usr/lib/x86_64-linux-gnu/libibus-1.0.so.0
00007f56d9513000-00007f56d9541533 /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
00007f56d92d8000-00007f56d930c87b /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
00007f56d90c7000-00007f56d90d60c3 /lib/x86_64-linux-gnu/libudev.so.1
00007f56d8d85000-00007f56d8d865fb /home/qianjia/eclipse-kelper/configuration/org.eclipse.osgi/bundles/77/1/.cp/os/linux/x86_64/libunixfile_1_0_0.so
00007f56d82b9000-00007f56d82c37a3 /home/qianjia/eclipse-kelper/configuration/org.eclipse.osgi/bundles/659/1/.cp/libswt-atk-gtk-4333.so
00007f56c28f5000-00007f56c28fa513 /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gif.so
00007f56c23af000-00007f56c23b3cb3 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/menuproxies/libappmenu.so
00007f56c219c000-00007f56c21ad95b /usr/lib/x86_64-linux-gnu/libdbusmenu-gtk.so.4
00007f56c1f81000-00007f56c1f9a453 /usr/lib/x86_64-linux-gnu/libdbusmenu-glib.so.4
00007f56a7616000-00007f56a7620cbb /home/qianjia/eclipse-kelper/configuration/org.eclipse.osgi/bundles/659/1/.cp/libswt-webkit-gtk-4333.so
00007f56a3c19000-00007f56a53e04fb /usr/lib/libwebkitgtk-1.0.so.0
00007f56a35c5000-00007f56a39e469b /usr/lib/libjavascriptcoregtk-1.0.so.0
00007f56a33ba000-00007f56a33c3d3b /usr/lib/libenchant.so.1
00007f56a31b2000-00007f56a31b8633 /usr/lib/x86_64-linux-gnu/libgailutil.so.18
00007f56a2f9b000-00007f56a2faebe3 /usr/lib/libgeoclue.so.0
00007f56a2d8f000-00007f56a2d99a2b /usr/lib/x86_64-linux-gnu/libgstapp-1.0.so.0
00007f56a2b46000-00007f56a2b8b443 /usr/lib/x86_64-linux-gnu/libgstaudio-1.0.so.0
00007f56a2922000-00007f56a29433b3 /usr/lib/x86_64-linux-gnu/libgstpbutils-1.0.so.0
00007f56a26e1000-00007f56a271c9f3 /usr/lib/x86_64-linux-gnu/libgstvideo-1.0.so.0
00007f56a2490000-00007f56a24ded7b /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0
00007f56a219d000-00007f56a228738b /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
00007f56a1f4c000-00007f56a1f8a92b /usr/lib/x86_64-linux-gnu/libjpeg.so.8
00007f56a1c91000-00007f56a1d30fa3 /usr/lib/x86_64-linux-gnu/libsoup-2.4.so.1
00007f56a1a55000-00007f56a1a8ef93 /usr/lib/x86_64-linux-gnu/libxslt.so.1
00007f56a16f2000-00007f56a184a16b /usr/lib/x86_64-linux-gnu/libxml2.so.2
00007f56a1494000-00007f56a14edb23 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
00007f56a11e8000-00007f56a128e6f3 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
00007f56a0e22000-00007f56a0fda640 /usr/lib/x86_64-linux-gnu/libicui18n.so.48
00007f56a0bbc000-00007f56a0c1a5fb /usr/lib/x86_64-linux-gnu/libXt.so.6
00007f56a0995000-00007f56a09b9afb /usr/lib/x86_64-linux-gnu/libdbus-glib-1.so.2
00007f56a075f000-00007f56a07923fb /usr/lib/x86_64-linux-gnu/libgsttag-1.0.so.0
00007f56a04e1000-00007f56a05592b3 /usr/lib/x86_64-linux-gnu/liborc-0.4.so.0
00007f56a02bf000-00007f56a02df5fb /lib/x86_64-linux-gnu/liblzma.so.5
00007f56a009a000-00007f56a00ba3f3 /usr/lib/x86_64-linux-gnu/libglapi.so.0
00007f56a843c000-00007f56a843c783 /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1
00007f569fe83000-00007f569fe97423 /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0
00007f569fc7e000-00007f569fc80bd3 /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0
00007f569fa78000-00007f569fa7be53 /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1
00007f569f86d000-00007f569f876dcb /usr/lib/x86_64-linux-gnu/libdrm.so.2
00007f569f665000-00007f569f66ba0b /usr/lib/x86_64-linux-gnu/libSM.so.6
00007f569f449000-00007f569f45f4d3 /usr/lib/x86_64-linux-gnu/libICE.so.6
00007f569f205000-00007f569f2474f3 /lib/x86_64-linux-gnu/libdbus-1.so.3
00007f569f000000-00007f569f003383 /lib/x86_64-linux-gnu/libuuid.so.1
00007f56a6dce000-00007f56a6dd0d4b /usr/lib/x86_64-linux-gnu/gio/modules/libgiognomeproxy.so
00007f56a5fb3000-00007f56a5fb4bf3 /usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so
00007f565ddd9000-00007f565ddf99fe /usr/lib/x86_64-linux-gnu/libproxy.so.1
00007f565dbcf000-00007f565dbd78ed /usr/lib/x86_64-linux-gnu/libproxy/0.4.11/modules/config_gnome3.so
00007f565d9cb000-00007f565d9ccd93 /usr/lib/x86_64-linux-gnu/libproxy/0.4.11/modules/network_networkmanager.so
00007f565d7bd000-00007f565d7c78f3 /usr/lib/enchant/libenchant_hspell.so
00007f565d5b1000-00007f565d5bb95f /usr/lib/enchant/libenchant_ispell.so
00007f565d3ae000-00007f565d3af843 /usr/lib/enchant/libenchant_aspell.so
00007f565d0e7000-00007f565d19f27b /usr/lib/libaspell.so.15
00007f565cee1000-00007f565cee4fd2 /usr/lib/enchant/libenchant_myspell.so
00007f565cc8d000-00007f565ccdbafd /usr/lib/x86_64-linux-gnu/libhunspell-1.3.so.0
00007f56aa6d3000-00007f56aa6d4253 /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
00007f565656e000-00007f56565a125b /usr/lib/x86_64-linux-gnu/librsvg-2.so.2
00007f5656334000-00007f565636a3b3 /usr/lib/x86_64-linux-gnu/libcroco-0.6.so.3
00007f5656131000-00007f5656132bcb /lib/libnss_mdns4_minimal.so.2
00007f5655f2a000-00007f5655f2f07b /lib/x86_64-linux-gnu/libnss_dns.so.2
Stack:
(* marks the word pointed to by the stack pointer)
00007f5788df5000: 00007f5788df5888* 00007f5789f58917 00007f5788df5690 00007f5788df5680
00007f5788df5020: 00007f570af3f988 00007f570af3f9b9 00007f5788df58b8 00007f5789f58942
00007f5788df5040: 00007f5788df58c8 00007f5789f5d1e4 000000000000000c 00007f570000003f
00007f5788df5060: 0000000000000014 00007f570000003d 0000000000000014 00007f5700000038
00007f5788df5080: 0000000000000009 00007f570000003c 00007f5788df5918 0000000089f58942
00007f5788df50a0: 00007f5788df5928 0000000000000000 0000000000000000 0000000000000000
Code:
(* marks the word pointed to by the instruction pointer)
00007f5789f8b9b0: 48fe294840738b48 814800000fffc681 9346e8fffff000e6 00401f0fc1eb0007
00007f5789f8b9d0: 2e66c3ffffffffb8 0000000000841f0f 53000000d8878b48 f8832050fffb8948
00007f5789f8b9f0: 0f08538b480f74ff 894801c2834802b6 2e666666c35b0853 0000000000841f0f
00007f5789f8ba10: 41d28548c0315641* 5355d48949544155 8949000000f8840f 90d38948f58948fd
00007f5789f8ba30: 30758b4d287d8b49 000090830ff7394c 4cf3394cfe294900 0f14fe8349f3460f
00007f5789f8ba50: f6854d000000ab87 8d48104d8d487474 e28348f2894c1077 cf3948ff468d49f0
Last optimized methods:
#177 java/lang/ref/ReferenceQueue.poll()Ljava/lang/ref/Reference; 5177.866-5177.870 0x7f574300dbe0-0x7f574300ddb4 3.92 ms 256KB
#178 org/eclipse/e4/core/internal/contexts/EclipseContext.cleanup()V 5201.219-5201.346 0x7f574326e000-0x7f574326ed4c 127.39 ms 1280KB
#179 jrockit/vm/Classes.forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class; 5412.858-5412.936 0x7f574326ed60-0x7f574326f94e 77.88 ms 1280KB
#180 java/util/HashMap.buildCache()V 5412.946-5412.972 0x7f574326f960-0x7f574326feb5 26.35 ms 768KB
*#181 java/util/HashMap$KeyIterator.next()Ljava/lang/Object; 5622.881-5622.885 0x7f574326fec0-0x7f5743270063 3.62 ms 256KB
#166 org/eclipse/emf/ecore/impl/MinimalEObjectImpl.hasField(I)Z 4513.062-4513.063 0x7f574312cf00-0x7f574312cf1f 0.31 ms 256KB
#167 org/eclipse/emf/common/util/AbstractEList.add(Ljava/lang/Object;)Z 4513.084-4513.084 0x7f574312cf20-0x7f574312cf6d 0.76 ms 256KB
#168 org/eclipse/emf/common/util/AbstractTreeIterator.next()Ljava/lang/Object; 4813.131-4813.144 0x7f574312cf80-0x7f574312d353 13.43 ms 576KB
#169 org/eclipse/emf/ecore/util/EcoreUtil$ProperContentIterator.hasNext()Z 4813.144-4813.148 0x7f574312d360-0x7f574312d5f9 3.57 ms 256KB
#170 org/eclipse/core/internal/resources/MarkerAttributeMap.shareStrings(Lorg/eclipse/core/internal/utils/StringPool;)V 4818.874-4818.883 0x7f574312d600-0x7f574312d858 9.57 ms 256KB
#171 java/util/HashMap.addEntry(ILjava/lang/Object;Ljava/lang/Object;I)V 4818.883-4818.888 0x7f574312d860-0x7f574312dc50 4.65 ms 512KB
#172 org/eclipse/swt/widgets/Display.readAndDispatch()Z 4827.887-4828.220 0x7f5742ccad20-0x7f5742ccd336 333.14 ms 4864KB
#173 org/eclipse/core/databinding/observable/Realm.runWithDefault(Lorg/eclipse/core/databinding/observable/Realm;Ljava/lang/Runnable;)V 4986.776-4986.785 0x7f574312dc60-0x7f574312de55 8.95 ms 256KB
#174 org/eclipse/emf/ecore/util/EContentsEList$FeatureIteratorImpl.hasNext()Z 5113.313-5113.350 0x7f574300ce00-0x7f574300d94e 37.04 ms 1024KB
#175 org/eclipse/emf/ecore/impl/MinimalEObjectImpl.eContents()Lorg/eclipse/emf/common/util/EList; 5113.350-5113.356 0x7f574300d960-0x7f574300dbc5 6.23 ms 512KB
#176 org/eclipse/ui/internal/Workbench$3.eventLoopIdle(Lorg/eclipse/swt/widgets/Display;)V 5154.651-5154.652 0x7f574312de60-0x7f574312de7e 0.86 ms 256KB
Thread:
"Main Thread" id=1 idx=0x4 tid=13581 lastJavaFrame=0x7f5788feecf8
Stack 0: start=0x7f5788df0000, end=0x7f5788ff1000, guards=0x7f5788df5000 (disabled), forbidden=0x7f5788df3000
Thread Stack Trace:
at _IO_default_xsputn+7()@0x7f5789f8ba17
at __vasprintf_chk+192()@0x7f578a020b31
-- Java stack --
at org/eclipse/swt/internal/gtk/OS._gtk_main_do_event(J)V(Native Method)
at org/eclipse/swt/internal/gtk/OS.gtk_main_do_event(OS.java:8742)
at org/eclipse/swt/widgets/Display.eventProc(Display.java:1243)
at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
at org/eclipse/swt/internal/gtk/OS._g_main_context_iteration(JZ)Z(Native Method)
at org/eclipse/swt/internal/gtk/OS.g_main_context_iteration(OS.java:2288)[inlined]
at org/eclipse/swt/widgets/Display.readAndDispatch(Display.java:3361)[optimized]
at org/eclipse/e4/ui/internal/workbench/swt/PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
at org/eclipse/core/databinding/observable/Realm.runWithDefault(Realm.java:332)
at org/eclipse/e4/ui/internal/workbench/swt/PartRenderingEngine.run(PartRenderingEngine.java:997)
at org/eclipse/e4/ui/internal/workbench/E4Workbench.createAndRunUI(E4Workbench.java:138)
at org/eclipse/ui/internal/Workbench$5.run(Workbench.java:610)
at org/eclipse/core/databinding/observable/Realm.runWithDefault(Realm.java:332)
at org/eclipse/ui/internal/Workbench.createAndRunWorkbench(Workbench.java:567)
at org/eclipse/ui/PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org/eclipse/ui/internal/ide/application/IDEApplication.start(IDEApplication.java:124)
at org/eclipse/equinox/internal/app/EclipseAppHandle.run(EclipseAppHandle.java:196)
at org/eclipse/core/runtime/internal/adaptor/EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org/eclipse/core/runtime/internal/adaptor/EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org/eclipse/core/runtime/adaptor/EclipseStarter.run(EclipseStarter.java:354)
at org/eclipse/core/runtime/adaptor/EclipseStarter.run(EclipseStarter.java:181)
at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
at jrockit/vm/Reflect.invokeMethod(Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Native Method)
at sun/reflect/NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(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:597)
at org/eclipse/equinox/launcher/Main.invokeFramework(Main.java:636)
at org/eclipse/equinox/launcher/Main.basicRun(Main.java:591)
at org/eclipse/equinox/launcher/Main.run(Main.java:1450)
at org/eclipse/equinox/launcher/Main.main(Main.java:1426)
at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
-- end of trace
Memory usage report:
Total mapped 6240004KB (reserved=3804280KB)
- Java heap 1048576KB (reserved=524288KB)
- GC tables 35084KB
- Thread stacks 100360KB (#threads=50)
- Compiled code 1048576KB (used=17771KB)
- Internal 1672KB
- OS 661012KB
- Other 3194708KB
- Classblocks 8192KB (malloced=8159KB #21260)
Not tracing sites.
- Java class data 140800KB (malloced=140603KB #98453 in 21260 classes)
Not tracing sites.
- Native memory tracking 1024KB (malloced=334KB #10)
Not tracing sites.
Set the env variable TRACE_ALLOC_SITES=1 or use the print_memusage switch
trace_alloc_sites=true to enable alloc site tracing.
* If you see this dump, please go to *
* http://download.oracle.com/docs/cd/E15289_01/go2troubleshooting.html *
* for troubleshooting information. *
===== END DUMP ===============================================================Hi,
I can see that Stackoverflow is happen in this case.
Please remove this one -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m -Xss2m
Try to keep following parameter -Xms2048 -Xmx2048 -XnoOpt in your eclipse.ini file.
that will help to resolve this issue.
Regards,
Kal -
Hi all I'm working on a project and need help.
I want the "New" button to clear all the fields.
Any help?
=======================================================
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Message extends JFrame implements ActionListener {
public Message() {
super("Write a Message - by Kieran Hannigan");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(370,270);
FlowLayout flo = new FlowLayout(FlowLayout.RIGHT);
setLayout(flo);
//Make the bar
JMenuBar bar = new JMenuBar();
//Make "File" on Menu
JMenu File = new JMenu("File");
JMenuItem f1 = new JMenuItem("New");
JMenuItem f2 = new JMenuItem("Open");
JMenuItem f3 = new JMenuItem("Save");
JMenuItem f4 = new JMenuItem("Save As");
JMenuItem f5 = new JMenuItem("Exit");
File.add(f1);
File.add(f2);
File.add(f3);
File.add(f4);
File.add(f5);
bar.add(File);
//Make "Edit" on menu
JMenu Edit = new JMenu("Edit");
JMenuItem e1 = new JMenuItem("Cut");
JMenuItem e2 = new JMenuItem("Paste");
JMenuItem e3 = new JMenuItem("Copy");
JMenuItem e4 = new JMenuItem("Repeat");
JMenuItem e5 = new JMenuItem("Undo");
Edit.add(e5);
Edit.add(e4);
Edit.add(e1);
Edit.add(e3);
Edit.add(e2);
bar.add(Edit);
//Make "View" on menu
JMenu View = new JMenu("View");
JMenuItem v1 = new JMenuItem("Bold");
JMenuItem v2 = new JMenuItem("Italic");
JMenuItem v3 = new JMenuItem("Normal");
JMenuItem v4 = new JMenuItem("Bold-Italic");
View.add(v1);
View.add(v2);
View.add(v3);
View.addSeparator();
View.add(v4);
bar.add(View);
//Make "Help" on menu
JMenu Help = new JMenu("Help");
JMenuItem h1 = new JMenuItem("Help Online");
JMenuItem h2 = new JMenuItem("E-mail Programmer");
Help.add(h1);
Help.add(h2);
bar.add(Help);
setJMenuBar(bar);
//Make Contents of window.
//Make "Subject" text field
JPanel row2 = new JPanel();
JLabel sublabel = new JLabel("Subject:");
row2.add(sublabel);
JTextField text2 = new JTextField("RE:",24);
row2.add(text2);
//Make "To" text field
JPanel row1 = new JPanel();
JLabel tolabel = new JLabel("To:");
row1.add(tolabel);
JTextField text1 = new JTextField(24);
row1.add(text1);
//Make "Message" text area
JPanel row3 = new JPanel();
JLabel Meslabel = new JLabel("Message:");
row3.add(Meslabel);
JTextArea text3 = new JTextArea(6,22);
messagearea.setLineWrap(true);
messagearea.setWrapStyleWord(true);
JScrollPane scroll = new JScrollPane(text3,
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
row3.add(scroll);
add(row1);
add(row2);
add(row3);
setVisible(true);
public static void main(String[] arguments) {
Message Message = new Message();
}Ok, given that I may have not been the kindest to you on the other thread (and I'm still annoyed that you went and cross-posted this), and that you did actually use code tags, I'm going to post some code here:
Please take the following advice onboard though.
1. When you are naming your artifacts, please use the java coding standard as your guide. So if you are naming a class you use a capital letter first, and use camel case thereafter. All method names begin with a lower case letter, and all variable names begin with a lower case letter (and again camel case after that)
2. Please use self explanitory names (for everything), so no more row1, row2, or text1, text2, etc.
3. The example I am giving below makes use of a single class to handle all actions, this is not really the best way to do this, and a better way would be to have a class to handle each action (that would remove the massive if() else if() in the action handler class.
4. When you are using class variables they should be private (no exceptions, ever!), if you need to access them from other classes use accessors (eclipse and other IDE tools can generate these methods for you in seconds)
5. Notice the naming convention for my constants (final statics), they are all upper case (again from the java coding standards document, which you are going to look for with google right?)
6. I have hived some of the creation work to helper methods (the getSubjectTextField() etc), although it isn't advisable to be calling other methods from the constructor, since this is a GUI, and you want it to appear as soon as you create the class, we won't worry about this, but perhaps as an execrise you could work out a better way to do this?
7. Personally, I don't like classes that implement listeners, unless they are specifically designed to do that job. So a Frame that is set up as an action listener is fine, provided the actions it listens for are associated with the frame, not its contents. If the actions are related to its contents, then a dedicated class is better.
8. Another personal opinion, but I feel it makes code clearer, but others may disagree. If you are creating a variable solely to hold the result of a calculation, to be passed to a method in the very next line, then don't create the variable, just pass the method as the argument to the method (feel free to ignore this advice if the method call is extremely long, and a local would make it easier to read)
Anyway, here is the code. I have removed most of the menu items, and leave this as an exercise for you. Also I have only created 2 methods (new and exit), I'll again leave it as an exercise for you to complete this.
package jdc;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.ScrollPaneConstants;
public class Message extends JFrame {
/** Constant for the new action command. */
private static final String NEW_COMMAND = "New";
/** Constant for the exit action command. */
private static final String EXIT_COMMAND = "Exit";
/** Subject text field. */
private JTextField subjectTextField;
/** Recipient text field. */
private JTextField toTextField;
/** Message text area. */
private JTextArea messageTextArea;
public Message() {
super("Write a Message - by Kieran Hannigan");
setSize(370, 270);
FlowLayout flo = new FlowLayout(FlowLayout.RIGHT);
setLayout(flo);
setJMenuBar(createMenuBar());
// Add "Subject" text field
JPanel subjectRow = new JPanel();
subjectRow.add(new JLabel("Subject:"));
subjectRow.add(getSubjectTextField());
// Add "To" text field
JPanel toRow = new JPanel();
toRow.add(new JLabel("To:"));
toRow.add(getToTextField());
// Make "Message" text area
JPanel messageRow = new JPanel();
JScrollPane scroll = new JScrollPane(getMessageTextArea(), ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
messageRow.add(scroll);
add(toRow);
add(subjectRow);
add(messageRow);
setVisible(true);
* Clear all the fields.
public void createNewMessage() {
getSubjectTextField().setText("");
getToTextField().setText("");
getMessageTextArea().setText("");
* Exit the application.
public void exitApplication() {
if (JOptionPane.showConfirmDialog(this, "Are you sure you would like to exit now?", "Exit",
JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
System.exit(0);
* @return The subject text field, (creates a new one if it doesn't already exist)
private JTextField getSubjectTextField() {
if (this.subjectTextField == null) {
this.subjectTextField = new JTextField("RE:", 24);
return this.subjectTextField;
* @return The to text field, (creates a new one if it doesn't already exist)
private JTextField getToTextField() {
if (this.toTextField == null) {
this.toTextField = new JTextField(24);
return this.toTextField;
* @return The message text area, (creates a new one if it doesn't already exist
private JTextArea getMessageTextArea() {
if (this.messageTextArea == null) {
this.messageTextArea = new JTextArea(6, 22);
this.messageTextArea.setLineWrap(true);
this.messageTextArea.setWrapStyleWord(true);
return this.messageTextArea;
* Helper method to create the menu bar.
* @return Menu bar with all menus and menu items added
private JMenuBar createMenuBar() {
JMenuBar bar = new JMenuBar();
JMenu fileMenu = new JMenu("File");
fileMenu.add(new JMenuItem(new MenuItemAction(this, NEW_COMMAND)));
fileMenu.add(new JMenuItem(new MenuItemAction(this, EXIT_COMMAND)));
bar.add(fileMenu);
// TODO add all other menu's and menu items here....
return bar;
* Private static class to handle all menu item actions.
private static class MenuItemAction extends AbstractAction {
/** Instance of the message class. */
private Message message;
* @param actionName
public MenuItemAction(Message messageFrame, String actionName) {
super(actionName);
this.message = messageFrame;
* @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
public void actionPerformed(ActionEvent e) {
if (e.getActionCommand().equals(NEW_COMMAND)) {
this.message.createNewMessage();
} else if (e.getActionCommand().equals(EXIT_COMMAND)) {
this.message.exitApplication();
// TODO Add the other event handlers here
public static void main(String[] arguments) {
Message messageFrame = new Message();
messageFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}If you have any questions, please let me know, as there are a number of new areas introduced that you may not have come across before. -
Need help with almost completed plugin engine project
Hi all,
For a while now I have been working on a plugin engine. After a few iterations, the engine is similar to the Eclipse engine, in that plugins use extension points and extensions to allow contributions. Unlike the eclipse engine I have added the ability for plugins to fire events through the engine and other plugins can add listeners, all through the plugin.xml manifest. Dependencies are mostly handled automatically at plugin load time (when extensions get resolved to extension points, and listeners get resolved to events). For the case where a plugin needs to use classes from another plugin, dependencies are also allowed to be declared. Like the eclipse engine, activation of plugins occurs the first time a class is used within the plugin's classpath, OR a plugin can be activated after it is loaded.
What I need help with is testing, working on examples to provide with the engine project, and feedback/suggestions before we release the M1 build. I am asking for those that are interested in this type of work to volunteer to help where applicable and possible. I want to provide a solid plugin engine to the java community, one that is easy to use, works well, and is pretty effecient in terms of resource usage and performance.
Of particular interest to me right at the moment is dealing with multiple versions. As I see it, the engine will be used within an application and as such plugins would be distributed with a specific application version. The plugin version itself is more of a notification as to what version a plugin is, although I imagine it will help when updating at runtime as well.
Just a few other details of the engine. It handles (or will soon) dynamic load, unload and reload of plugins at runtime. Plugins can be distributed in an archive file format, we call .par (Plugin ARchive), with additional plugin filename extensions configurable at runtime. The plugins can be developed and deployed in an expanded directory format as they are in Eclipse as well, or in the archive format. In the archive format they do not need to be unzipped when deployed, and they can contain embeded jar/zip libraries. The engine handles finding and creating classes directly out of the .par file at runtime.
Multiple locations to find plugins are configurable before the engine starts, and even after it starts more could be added to allow additional locations to find plugins. URLs are supported, and soon the HTTP protocol will be supported so that plugins can be downloaded and installed at runtime.
The project can be found at www.sourceforge.net/projects/genpluginengine. If you would like to get involved and help out, please sign up on the dev mail list and send an email to introduce yourself to the rest of the members on the list.
I'll also add that I am working on a Swing UI Framework built entirely from plugins. It provides a ready-to-launce UI application that developers can simply add their plugins to, extending various extension points of the framework to have menu items, toolbar buttons, status bar access, help and preferences dialog additions, file i/o choosers, tons of open-source components ready to use (or extend to add on to), and like Eclipse, hopefully... draggable window frames that can be dropped on any other frame to form a tabbed frame of windows. Some of this is a ways off, some is getting there now. Presently you can add menu items that do allow plugin activation when first clicked, so plugins can be loaded but not activated until needed. The Preference dialog works but is not completed, and a plugin that adds a plugin control panel to view all loaded plugins, activate them, load/unload/reload, view extension points, extensions, dependencies, etc is partially completed. The point is, to allow a ready to run UI framework in Swing with an easy path for developers to quickly build applications with. If you are interested in this, when you join the mail list and introduce yourself, indicate that you are interested in this as well, as we need help with plugin development for it and would appreciate more help here too.
Look forward to some replies.Might I suggest setting up a project at a known project-site? I've seen your progress and questions posted here from time to time, but one of the drawbacks is that you have to fill each post with the entirity of your vision to explain what you're doing. That's a lot of text to read - and most folks will skip right over it.
On the other hand, a well-crafted, good-looking project web-site, with appropriate links and docs and vision statements, diagrams, etc. will have more likelyhood of attracting volunteers. java.net and sourceforge.net are likely spots to set up shop. In addition, you get CVS and bug-tracking systems, which can be quite valuable in such a large-scale project where there are lots of pieces. -
Help with eclipse installation, please!
I usually use dreamweaver but now I have to use eclipse. I'm
so confuse as where to start. I've googled for guide to eclipse
installation but not sure what to do.
Here is what I found:
On this link
http://www.cs.umd.edu/class/spring2006/cmsc132/EclipseTutorial/install.html
it says I have to first install jdk-1_5_0_04-windows-i586-p.exe but
I can't download this file because I'm not their student. I looked
around everywhere and can't find this file for download.
Then I thought I may be just download eclipse from
http://www.eclipse.org/downloads/
When I clicked download, I'm face with anothe confusing page,
I'm not sure which one to choose.
Do I have to download : Eclipse Classic 3.4.1 (151 MB) ? how
about JDK?
I searched for JDK on my machine and I did not see any jdk
except jdk12utils folder, jdk118 folder, jdk122 folder and jaguar
server (jdk1.2). There a re a bunch of other jdk such as JDK_JJ,
JDK_VJ, etc
I need to use eclipse just to develop web application with
coldfusion (locally) and databse Sybase and that is it. No java no
nothing and I'm no java person so these things confuse me, please
help!
Oh by the way, I also read somewhere that once I installed
eclipse I need to install the CFEclipse.
Please help!!!!>
http://www.cs.umd.edu/class/spring2006/cmsc132/EclipseTutorial/install.html
it
> says I have to first install
jdk-1_5_0_04-windows-i586-p.exe but I can't
> download this file because I'm not their student. I
looked around everywhere
> and can't find this file for download.
Really? I just Googled "jdk-1_5_0_04-windows-i586-p.exe" and
found rather
a lot of matches. One can download it from the very first
link.
There are more recent versions of Java than that, though.
If you ever need to download a JDK, the Java website is
perhaps the best
bet (java.sun.com).
> Do I have to download : Eclipse Classic 3.4.1 (151 MB) ?
how about JDK?
> I searched for JDK on my machine and I did not see any
jdk except jdk12utils
> folder, jdk118 folder, jdk122 folder and jaguar server
(jdk1.2). There a re a
> bunch of other jdk such as JDK_JJ, JDK_VJ, etc
OK, some background. Eclipse is a Java application, so to run
it, one
needs Java installed.
If you don't already have a JDK installed, then the option
you want is the
one WITH the JDK, because that will definitely be the a
suitbale version to
run Eclipse one. One might not want to D/L the version
bundled with a JDK
if one already has the same or more recent JDK installed.
> Oh by the way, I also read somewhere that once I
installed eclipse I need to
> install the CFEclipse.
> Please help!!!!
Well: start by googling CFEclipse. On the website for it,
there'll be a
D/L as well as instructions. It's pretty straight fwd, if one
reads the
instructions.
Adam -
I need help with reporting as soon as possible!
How can I do reporting in JDeveloper like in Crystal reports. Is there any extention or tool that can be of help.
Thanks
Edited by: Fenoch on Mar 12, 2010 6:34 AM
Edited by: Fenoch on Mar 12, 2010 6:36 AM@Fenoch,
I'm also new to the JDeveloper world and I haven't gotten into reporting yet, but a couple I've heard about are
Oracle BI Publisher - http://www.oracle.com/technology/products/xml-publisher/index.html
Jasper Reports - http://www.jaspersoft.com/
BIRT - http://www.eclipse.org/birt/phoenix/ (more of an eclipse thing I think)
I hope that helps, I'd like to hear what you find out about any of these.
Don't let elitist responses run you out of the community.
@John,
John Stegeman wrote:
If you need help as soon as possible, why didn't you try searching the forums?
JDeveloper doesn't have reporting capability, per se, but there are a number of Java-based reporting tools out there, which you could find [url http://www.lmgtfy.com/?q=java+reports]here
John
Way to be an ass to a newbie. It is posts like this (from an Oracle "Ace" Director no less) that push people away from the platform.
Maybe you could post a link to a reporting tool you know about, instead of sounding off like an elitists jerk and belittling a new guy. I'm sure you popped into the world full of knowledge and ego, never received any help or asked any "newb" questions.
I also find it very interesting that your "helpful" search link sends us to GOOGLE and not on a search of these forums. Could it be that the forum search is unreliable and returns garbage results most of the time?
You could have linked a forum search -
http://forums.oracle.com/forums/search.jspa?objID=f83&q=java+reports (Typical unhelpful results set)
http://forums.oracle.com/forums/search.jspa?objID=f83&q=reports (Slightly better, at least has a couple posts talking about Jasper)
Re: Report Facility
Or if you just gotta use google at least narrow it to the forum you are suggesting we search in -
http://www.google.com/search?hl=en&as_q=java+reports&as_epq=&as_oq=&as_eq=&num=100&lr=&as_filetype=&ft=i&as_sitesearch=http%3A%2F%2Fforums.oracle.com%2Fforums%2Fforum.jspa%3FforumID%3D83&as_qdr=all&as_rights=&as_occt=any&cr=&as_nlo=&as_nhi=&safe=images
It is actually the low quality of the forum search tool that forces people to re-post the same questions as others have. I know I do it all the time after I've attempted multiple searches.
TL;DR version
Be helpful or be silent.
Bullying the new people pushes them away and hurts the community. No new people -> no more JDeveloper. -
Hi,
I need help with log4j logging tool (org.apache.log4j.*) to log into database using JDBCAppender. Have look at my logger code and corresponding log4j.properties file stated below. I'm running this program using Eclipse IDE and it's giving me the following error (highlighted in red) at the end:
log4j: Parsing for [root] with value=[debug, stdout, Roll, CRSDBAPPENDER].
log4j: Level token is [debug].
log4j: Category root set to DEBUG
log4j: Parsing appender named "stdout".
log4j: Parsing layout options for "stdout".
log4j: Setting property [conversionPattern] to [%x %d{HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n].
log4j: End of parsing for "stdout".
log4j: Parsed "stdout" options.
log4j: Parsing appender named "Roll".
log4j: Parsing layout options for "Roll".
log4j: Setting property [conversionPattern] to [%x %d{yyyy.MM.dd HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n].
log4j: End of parsing for "Roll".
log4j: Setting property [file] to [HelloWorld.log].
log4j: Setting property [maxBackupIndex] to [10].
log4j: Setting property [maxFileSize] to [20KB].
log4j: setFile called: HelloWorld.log, true
log4j: setFile ended
log4j: Parsed "Roll" options.
log4j: Parsing appender named "CRSDBAPPENDER".
{color:#ff0000}
Can't find class HelloWorld{color}
import org.apache.log4j.*;
public class HelloWorld {
static Logger log = Logger.getLogger(HelloWorld.class.getName());
public static void main(String[] args) {
try{
// Now, try a few logging methods
MDC.put("myComputerName", "Ravinder");
MDC.put("crsServerName", "ARNDEV01");
log.debug("Start of main()");
log.info("Just testing a log message with priority set to INFO");
log.warn("Just testing a log message with priority set to WARN");
log.error("Just testing a log message with priority set to ERROR");
log.fatal("Just testing a log message with priority set to FATAL");
catch(Exception e){
e.printStackTrace();
------------------------- log4j.properties file ------------------------------
#### Use three appenders - log to console, file and database
log4j.rootCategory=debug, stdout, Roll, CRSDBAPPENDER
log4j.debug=true
# Print only messages of priority WARN or higher for your category
# log4j.category.your.category.name=WARN
# Specifically inherit the priority level
# log4j.category.your.category.name=INHERITED
#### stdout - First appender writes to console
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%x %d{HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n
#### Roll - Second appender writes to a file
log4j.appender.Roll=org.apache.log4j.RollingFileAppender
##log4j.appender.Roll.File=${InstanceName}.log
log4j.appender.Roll.File=HelloWorld.log
log4j.appender.Roll.MaxFileSize=20KB
log4j.appender.Roll.MaxBackupIndex=10
log4j.appender.Roll.layout=org.apache.log4j.PatternLayout
log4j.appender.Roll.layout.ConversionPattern=%x %d{yyyy.MM.dd HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n
#### CRSDBAPPENDER - third appender writes to the database
log4j.appender.CRSDBAPPENDER=org.apache.log4j.jdbc.JDBCAppender
log4j.appender.CRSDBAPPENDER.Driver=net.sourceforge.jtds.jdbc.Driver
log4j.appender.CRSDBAPPENDER.URL=jdbc:jtds:sqlserver:/arncorp15:1433;DatabaseName=LOG
log4j.appender.CRSDBAPPENDER.USER=sa
log4j.appender.CRSDBAPPENDER.PASSWORD=p8ss3doff
log4j.appender.CRSDBAPPENDER.layout=org.apache.log4j.PatternLayout
log4j.appender.CRSDBAPPENDER.sql=INSERT INTO LOG (computername, crsservername, logtime, loglevel, threadname, filename, linenumber, logtext) VALUES ('%X{myComputerName}', '%X{crsServerName}', '%d{dd MMM yyyy HH:mm:ss,SSS}', '%p', '%t', '%F', '%L', '%m')
#log4j.appender.CRSDBAPPENDER.sql=INSERT INTO LOG(COMPUTERNAME,CRSSERVERNAME,LOGTIME,LOGLEVEL,THREADNAME,FILENAME,LINENUMBER,LOGTEXT) select host_name(),'${CRSServerName}${InstanceName}','%d','%5p','%t','%F','%L','%m%n'
#log4j.appender.CRSDBAPPENDER.sql=INSERT INTO LOG (computername, crsservername, logtime, loglevel, threadname, filename, linenumber, logtext) VALUES ("%X{myComputerName}", "%X{crsServerName}", "%d{dd MMM yyyy HH:mm:ss,SSS}", "%p", "%t", "%F", "%L", "%m")
------------------------------- end of log4j.properties file ------------------------------
Here is the directory structure of my program. My log4j.properties file and HelloWorld.class file are residing in folder HelloWorld\bin.
HelloWorld\bin
HelloWorld\lib
HelloWorld\src
Please note - The same program works fine for console and file appender when I comment the database appender part in my properties file.
Thanks
Ravindertry this :
log4j.appender.PROJECT.Append=false -
I'm a new OEPE user, and found that after installing it, Eclipse (Kepler) now starts up with the wrong workspace every time. I have to explicitly do File > Switch Workspace... to get Eclipse to restart with the correct workspace. Also, the workspace I want to use is the only one listed in the Workspaces preferences panel (Window > Preferences > General > Startup and Shutdown > Workspaces). So I can't figure out why Eclipse is using the wrong workspace, and why it's even finding this wrong one.
I found that many other users of OEPE with Kepler are having this same problem:
Eclipse Community Forums: Eclipse Platform &raquo; Kepler: On start up, I no longer get prompted for workspace locat…
And this sounds curiously like this old problem reported right here on the OTN Community site:
https://forums.oracle.com/thread/2191740
Any suggestions for how to get around this? I assume this is a bug, but don't know the correct process for reporting OEPE bugs.77e559c0-cd28-48cd-916f-3f755e9683b5 wrote:
Hi.
I suspect that some action by the OEPE code somehow modifies the OSGi Cache so that it no longer asks you what workspace you'd like to use (and forces usage of the workspace in top user directory.) I found that if you put in "-clean" in your eclipse.ini, then you get asked what workspace you'd like to use. This flag clears out the OSGi cache (hence my theory that it is this cache that is messed up)
That said, there are arguments for not doing this all the time. See this discussion: java - How to run eclipse in clean mode? and what happens if we do so? - Stack Overflow
Finally, I suspect you have another workspace on your system now. Presuming you are on a PC, go to your user dir - I'd wager there is a "workspace" dir there now. That is where OEPE wants to work.
Good Luck!
OEPE should be able to work with any workspace; it has in the past! If a specific workspace is required with this release, that is a step backward in my opinion. That said, if that is the direction of the product, so be it. I find it hard to believe that is the direction of the product, however! -
Need help to develop Pythagoras theorem-
Hi i need help to develop proofs 2,3,4
of pythagoras theorems in java as demonstrations
These are applets can anyone help me with it or give me an idea of how to go about developing it -
the site is the following
http://www.uni-koeln.de/ew-fak/Mathe/Projekte/VisuPro/pythagoras/pythagoras.html
then double click on the screen to make it startPardon my ASCII art, but I've always liked the following, simple, geometric proof:
a b
---------------------------------------+
| | |
a| I | II |
| | |
---------------------------------------+
| | |
| | |
| | |
| | |
| | |
b| IV | III |
| | |
| | |
| | |
| | |
| | |
| | |
---------------------------------------+It almost goes without saying that I+II+III+IV == (a+b)^2, and II == IV == a*b,
I == a*a and III == b*b, showing that (a+b)^2 == a^2+a*b+a*b+b^2.
I hope the following sketch makes sense, stand back, ASCII art alert again: a b
---------------------------------------+
| . VI |
| . . |a
| V . |
| +
| |
| . |
b| . |
| |
| IX |
| . |
| . |b
| |
+ |
| . |
a| . . VII |
| VIII . |
---------------------------------------+
a bThe total area equals (a+b)^2 again and equals the sum of the smaller areas:
(a+b)^2 == V+VI+VII+VIII+IX. Let area IX be c^2 for whatever c may be.
V+VII == VI+VIII == a*b, so a^2+b^2+2*ab= c^2+2*a*b; IOW a^2+b^2 == c^2
Given this fundamental result, the others can easily be derived from this one,
or did I answer a question you didn't ask?
kind regards,
Jos -
I need help to find and open a job app that I exported, was able to fill out and sign and saved and now can't open it? What did I do wrong?
What file format did you export it to?
-
Need help to open audios attached in a PDF file
Hello
I just need help. I have ordered a reviewer online that has audios and texts in a pdf file. I was told to download the latest adobe reader on my computer. I have done the same thing on my ipad mini. I am not so technical with regards to these things. Therefore I need help. I can access the audios on my computer but not on my ipad.
I want to listen to audios with scripts or texts on them so i can listen to them when i am on the go. I was also informed that these files should work in any device. How come the audios doesnt work on my ipad.
Please help me on what to do.
ThanksAudio and video are not currently support on Adobe Reader. :-<
You need to buy a PDF reader that supports them. My suggestion is PDF Expert from Readdle ($US 9.99) -
Need help to open and look for file by name
Hi,
Im needing help to open a folder and look for a file (.txt) on this directory by his name ... The user ll type the partial name of file , and i need look for this file on the folder , and delete it ....
How can i look for the file by his name ?
Thx =)Hi ,
Sry ,, let me explain again ... I ll set the name of the files in the follow order ... Name_Serial_date_chanel.sxc ..
The user ll type the serial that he wants delete ...
I already figured out what i need guys .. thx for the help ^^
I used List Directory on advanced IO , to list all .. the Name is the same for all ... then i used Name_ concateneted with Serial(typed)* .. this command serial* ll list all serials equal the typed , in my case , ll exist only one , cuz its a count this serial .Then i pass the path to the delete , and its done !
Thx ^^
Maybe you are looking for
-
Duplicate check on search term for BP creation in CRM
HI, I want to do a duplicate check on search term for BP creation in CRM. i found one BADI ADDRESS_SEARCH. But the method address_search is not getting called. Is there any other BADI available? how can I handle this issue?
-
What can i do when my older ipod wont let me even download free apps
What can i do when my older ipod touch won't let me download free apps?
-
How to use pl/sql procedure or function as part of validate the entity obj?
Hi, we are migrating from oracle forms to jdeveloper 11g. I have a req. that,i wanted to use oracle pl/sql procedure to validate a attribute in an entity created with ADF BC? Is it possible to implement this? And how to show the error message from pl
-
According to IBM Domino iNotes support, the Firefox failed to use the cached signed script, from Domino 8.5.3 iNotes, - signed script also could not be executed at that time, therefore the message was unable to be sent out. - Has this been fixed in F
-
How do I insert a nav bar I made in photoshop into dreamweaver?
I have spent days making a roll-over navigation bar in photoshop and saved for web with slices, but however I try to insert it into my webpages, (either as a library item or otherwise - not that I really know what I'm doing!) It is always a greyed ou