Spent one whole day to figure out semicolon(;) in windows is equivalent to specifying colon(:) on unix platform.
If all of the jars are placed into a folder called ‘jars’ in the current directory.
on Windows –> java -cp .;jars/* AbsoluteClassname arguments
Unix –> java -cp .:jars/* AbsoluteClassname arguments
Exception in thread “main” java.lang.NoClassDefFoundError:
In Process, to be updated soon…
Step 1: Download the JAD zip file and extract (you already have done this step for command line example).
download JAD from:
Step 2: Download the JAD Eclipse Plugin from SourceForge Website – Download Link.
The plugin is – net.sf.jadclipse_3.3.0.jar
Step 3: Put the JadClipse JAR file(net.sf.jadclipse_3.3.0.jar) into the plugins folder of your Eclipse installation.
Step 4: Restart the eclipse
Step 5: In Eclipse > Go to Window > Preferences… > General > Editors > File Associations and make sure that the JadClipse Class File Viewer has the default file association for *.class files and click Apply button.
Step 6: Configure the path to the Jad executable (jad.exe) – check Step 1 for the path of your jad.exe
In Eclipse > Go to Window > Preferences… >Java > JadEclipse > Type Jad’s path in “Path to Decompiler” field.
Step 7: Test the JAD in Eclipse
In Eclipse IDE, navigate to any class which does not have the source code and press F3 key, JAD will decompile it automatically and opens in a editor on right panel of the Eclipse IDE.
The Class File Viewer cannot handle the given input (‘org.eclipse.ui.ide.FileStoreEditorInput’).
I was able to fix it by adding the folder that contains the class file(s) as a “Class Folder” under Project Properties => Java Build Path => Libraries => Add Class Folder.
Once I did that, I was able to decompile all the sources properly – it needs to be part of your workspace.
By default list.contains(“String”) check for complete match in each line, so searching for list.contain(“ing”) would return false.
This is what I did for solution:
Convert list collection to String and then search in this complete Collection String contains our substring “ing”
Example: sample code below list elements in list1 that are not present in list2. Also while comparing it compares only for first 7 characters
String x = list2.toString();
String b = a.substring(0,7);
Problem – not able to rhc ssh to application on windows
c:\>rhc ssh <appname>
No system SSH available. Please use the –ssh option to specify the path to your
SSH executable, or install SSH.
Reinstall Git with ‘Use Git and optional Unix tools from the Windows Command Prompt‘ option for Git and SSH operations, shown below:
Problem – Application url displaying 503 error
it may be due to Tomcat/Jboss server crash, in such situations to restart the webserver please run
c:\>rhc cartridge-restart --cartridge jboss -a appname