Java programming

VDSL2Tool 2.2 nl

Door qless op maandag 26 december 2011 13:26 - Reacties (2)
Categorieën: Java, VDSL2, Views: 1.051

Na heeeeel lang wachten staat die nu online:

win | mac | other

http://tweakers.net/ext/f/deKdGJu6bGpiC58sPGUuSiMK/full.jpg

Alle nieuwe officiële profielen zijn toegevoegd (dus ook de long reach 12/1) en detectie van repair profiel is aangepast.

VDSL2 modem data - 8

By qless on Monday 13 December 2010 12:00 - Comments (8)
Categories: Java, VDSL2, Views: 2.144

This weekend I updated my VDSL2Tool program, now with support for the FritzBox 7390 VDSL2 modem.

Screenshots:
http://tweakers.net/ext/f/deKdGJu6bGpiC58sPGUuSiMK/thumb.jpg http://tweakers.net/ext/f/1LUCxM8N6rHqTaeFslBG35SZ/thumb.jpg http://tweakers.net/ext/f/nOTOoUAHmkzEJm3QjnxgBhVn/thumb.jpg http://tweakers.net/ext/f/XkUQRRdw5hYap9eWE7Mxu7WR/thumb.jpg http://tweakers.net/ext/f/ujYQn3E1EXoEDmsBXKeQEIzS/thumb.jpg

Download:
Windows (zip) | Mac OS X(zip) | Executable JAR

PhotoStats

By qless on Thursday 05 August 2010 00:16 - Comments (8)
Categories: Java, Photography, Views: 2.384

Last year I made a little program in JavaFX to read a lightroom library and create some charts. ( see Arno Raps: Lightroom statistics - 3 )

I got a few questions about iPhoto support and got quite a number of error reports with JavaFX and webstart so here is a new version:

Supports: Lightroom 2.x,3.x iPhoto '09
Runs on Windows and Mac with a Java 1.6 JRE installed.

Download links:
Windows | Mac OS

Screenshots:

http://tweakers.net/ext/f/Sf3BRiJa252oGvCmNSYLppyN/thumb.png http://tweakers.net/ext/f/GIgVzC0Rx8D03TxE5MBdWQ5C/thumb.pnghttp://tweakers.net/ext/f/qQJ3Bh5TCo00lEPClLjs3b3i/thumb.png http://tweakers.net/ext/f/cbpT6Xodwkt1tIDHjKkrMJYx/thumb.png http://tweakers.net/ext/f/QTPuJ9K71Y8uhXPNgBCLgW1p/thumb.png

http://tweakers.net/ext/f/Sr5rU1l5AtK3M3CELrJUJLTW/thumb.png http://tweakers.net/ext/f/tNXehrb47ATxJiL5O7ALNE0k/thumb.png http://tweakers.net/ext/f/6zIvDFsoJvHCUE8RSci71tBf/thumb.png http://tweakers.net/ext/f/WwZOEW6nHsQkbG4Qwmja3WEh/thumb.png http://tweakers.net/ext/f/kLYML3uRGo7lx05a7fABl8sK/thumb.png

Single JAR - .exe & mac app

By qless on Wednesday 02 June 2010 17:30 - Comments (4)
Categories: Java, Programming, Tutorial, Views: 2.724

And now the second part (see http://arnoraps.tweakblog.../netbeans-single-jar.html ) how to create a user-friendly version of your executable jar.

For Windows .exe use
Launch4j Can be run on Windows, Mac and Linux

For Mac, download the Jar Bundler ( a part of Xcode) here
http://developer.apple.com/technologies/tools/ Can only be run on Mac

In both programs you'll have to set the location of your fat single jar, set some details on minimum Java version and of course a nice little icon.


http://tweakers.net/ext/f/XP3CSykgjQuFN7ZF61RMIY08/thumb.jpg http://tweakers.net/ext/f/2HPHtZBBcCWr6tVUhfQNBdhb/thumb.jpg http://tweakers.net/ext/f/wffW4DOzFwy50ZtqqNqJHYYU/thumb.jpg

Netbeans - Single JAR

By qless on Sunday 30 May 2010 21:26 - Comments (6)
Categories: Java, Programming, Tutorial, Views: 5.109

Netbeans is one of the free great Java IDE's, but its default build creates a dist folder with a small jar and a subfolder with the libraries.
In eclipse I had a plugin called "fat-jar" which would build one big jar. In Netbeans this is possible with a small piece of xml config in the build.xml: (add at the end, before the closing project tag)

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<target name="package-for-store" depends="jar">

        <!-- Change the value of this property to be the name of your JAR,
             minus the .jar extension. It should not have spaces.
             <property name="store.jar.name" value="MyJarName"/>
        -->
        <property name="store.jar.name" value="VDSL2tool"/>


        <!-- don't edit below this line -->

        <property name="store.dir" value="store"/>
        <property name="store.jar" value="${store.dir}/${store.jar.name}.jar"/>

        <echo message="Packaging ${application.title} into a single JAR at ${store.jar}"/>

        <delete dir="${store.dir}"/>
        <mkdir dir="${store.dir}"/>

        <jar destfile="${store.dir}/temp_final.jar" filesetmanifest="skip">
            <zipgroupfileset dir="dist" includes="*.jar"/>
            <zipgroupfileset dir="dist/lib" includes="*.jar"/>

            <manifest>
                <attribute name="Main-Class" value="${main.class}"/>
            </manifest>
        </jar>

        <zip destfile="${store.jar}">
            <zipfileset src="${store.dir}/temp_final.jar"
            excludes="META-INF/*.SF, META-INF/*.DSA, META-INF/*.RSA"/>
        </zip>

        <delete file="${store.dir}/temp_final.jar"/>

    </target>


Now after your development, testing you can build a single, executable, jar file, by right mouse clicking on the build.xml file and selecting the proper target:
netbeans build single jar

Next step would be building the windows exe and mac app bundle from this executable jar.