Adding external JAR to Maven project in NetBeans

From the NetBeans forum: Open the Projects tab. Right-click on Dependencies. Select Add dependency. Set groupId to: group.id (can be anything) Set artifactId to: artifact.id (can be anything) Set version to: 1.0 (can be anything) Click Add to continue. Dependency is added to pom.xml and appears under the Libraries node of Maven project. Continue: Expand … Read more

Creating a product SDK: How do I add a native lib (.so) and a jar with the SDK I am creating?

I spent some time on this, and i just can’t understand why isn’t this written on wikitude documentation…. anyway follow this changes! go to windows/preferences/android/build uncheck the first and the second option extract files from wikitudesdk.jar with winrar as if it is an archive, search libarchitect.so and copy it in /libs/libs/armeabi/ add wikitudesdk.jar to your … Read more

PDF to image using Java [duplicate]

In Ghost4J library (http://ghost4j.sourceforge.net), since version 0.4.0 you can use a SimpleRenderer to do the job with few lines of code: Load PDF or PS file (use PSDocument class for that): PDFDocument document = new PDFDocument(); document.load(new File(“input.pdf”)); Create the renderer SimpleRenderer renderer = new SimpleRenderer(); // set resolution (in DPI) renderer.setResolution(300); Render List<Image> images … Read more

generate jars with source code using Ant

I would modify your jar task to include multiple filesets; one for the classes and one for the source files. <jar destfile=”${target.dir}/my-app.jar”> <fileset dir=”${target.dir}/classes” /> <fileset dir=”${src.dir}” includes=”**/*.java”/> </jar> Packaging should be treated as a separate concern from compiling. This will give you more flexibility. For example, you may want to add other filesets to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)