How to configure Eclipse to debug Alfresco java webscript code NOTE: It is assumed, that Eclipse environment has been configured to work with Alfresco SDK. If it’s not true the configuration process has been described here: http://wiki.alfresco.com/wiki/Alfresco_SDK_3.4#Set_Eclipse_Compiler_Compliance_Level_to_6.0. 1. Select: Run menu -> Debug configurations… 2. Create new configuration for ‘Remote Java Application’ 3. In ‘Project’ [...]
Category Archives: Programming
How to configure Eclipse to debug Alfresco java webscript code
I get “Unable to locate the Javac Compiler” when trying to build using IAM Maven Eclipse plugin.
Problem: When trying to build maven project using IAM under Eclipse I get an error like this: "Unable to locate the Javac Compiler in:C:\\Program Files\\Java\\jre6\..\\lib\\tools.jar Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class is required). In most cases you can change the location of your Java installation [...]
How to upload a new file to Alfresco using web services?
Uploading a big binary file to alfresco repository using CMIS web services and UploadContentServlet
I get NoClassDefFound for ContextLoaderListener class using Spring and Eclipse IAM Maven plugin
I get NoClassDefFound for ContextLoaderListener class using Spring and Eclipse IAM Maven plugin. A few simple solutions.
Problems using Eclipse IAM and Maven
Problems using Eclipse IAM and Maven. NoClassDefFound error.
JNA causes JVM to crash althoug I allocate memory properly
During my work with JNA I experienced a following problem: Memory intMem = new Memory(4); // allocating space intMem.setInt(0, 666); // setting allocated memory to an integer Pointer intPointer = intMem.getPointer(0); dlllib.method1(intMem); // OK dlllib.method1(intPointer); /// JVM crash !! I can’t find the reason for such behaviour, I’ve only found out that passing Memory object [...]
How to invoke a C/C++ method with void* parameter from Java JNA?
It’s possible with help of Memory and Pointer JNA objects. Example covering such case is provided in my another article: How to call/invoke external DLL library method/function from Java code?
How to call/invoke external DLL library method/function from Java code?
Introduction Java’s JVM allows you to do many smart things but sometimes you may be forced to directly use external library or writing code in pure java would be very time-consuming comparing it with something more low-leveled. I stumbled upon such a problem and had to use a .dll driver from a hardware provider. Of [...]
How to properly run java console application with a doubleclick (Windows)
You’ve developed a java application which runs fine in your IDE but now you want to show your application to the outer world. Running a java program by setting up windows command window and then typing java -jar myProgram.jar paramA paramB .. may be a bit confusing for an everyday user, so the simplier means [...]
I get NoClassDefFoundError after refactor (rename) in NetBeans although there are no errors in my code
If you’re really sure that you didn’t do any error (such as mistypo) clearing NetBeans cache folder may help. It’s located in the following directory: “<user home>\.netbeans\<version>\var\cache” Close NetBeans before doing this.