Showing posts with label eclipse. Show all posts
Showing posts with label eclipse. Show all posts

Tuesday, March 20, 2012

View Source Code of JAR File

In Eclipse

1. Attach Source Code
get a JAR file containing source code.

If double-click Class file, one can see a button of attach source.

or If right-click JAR file, Properties > Java Source Attachment > select Source JAR file.

2. Use JAD Decompiler


3. Use Maven when a project is using Maven and m2eclipse

Right-click a JAR file, Maven > Download Sources


Reference

Friday, June 18, 2010

cannot load 32 bit SWT libraries on 64 bit JVM

on eclipse, MacOSX Snow Leopard

error message : cannot load 32 bit SWT libraries on 64 bit JVM

I changed java preferences using GUI. The preferred order of java is that first 32-bit, second 64-bit. However it doesn't take effect.

I googled and found the easy solution.
The JVM argument is given "-d32". If you'd like to run 64 bit JVM, give "-d64".

reference

Tuesday, November 17, 2009

Problems with Eclipse buttons in Ubuntu 9.10

export GDK_NATIVE_WINDOWS=true

org.eclipse.swt.SWTError: XPCOM error -2147467262

if you get this problem
org.eclipse.swt.SWTError: XPCOM error -2147467262

edit the file of eclipse.ini

add the following
-Dorg.eclipse.swt.browser.XULRunnerPath=/dev/null
or
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner

http://ohioloco.ubuntuforums.org/showthread.php?t=1273380

Monday, December 29, 2008

How to fix eclipse "resource is out of sync with the file system"

If you edit a workbench resource outside of Eclipse, this problem occurs.

To fix the problem, refresh the project.