Java

Applications and Applets (use at your own risk)

Some little applications and applets. Use at your own risk, I can't assume any responsibility.

BFide my Brainfuck IDE

DBTester Database Tester

IGC IGC Viewer

Primes an Applet to show prime numbers.

Taxi The Programming Language

TCPscript execute TCP commands from a script

Unicode an Applet to show unicode characters.

FileFilter.jar some file utilities… (page not yet done)

game.zip probability check… it's NOT a game, just testing some algorithms… (page not yet done)

mousemover.jar mouse mover tricky - use at your own risk … (page not yet done)

SimpleTimer.java just a simple Timer

ZanderFromOpenAir.jar Convert airspace from OpenAir to Zander (AZ) format

Code

SimpleTimer.java Timer.java Class to calculate how long a given part of a program runs. Returns the elapsed, CPU and user mode times.
Only for my personal usage. I do not assume any kind of responsibility or liability if you download or use this program.
This software is not designed, licensed or intended for use in the design, construction, operation or maintenance of any nuclear facility.

Tools

Eclipse

Updates through Firewall - add to eclipse.ini:

-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4

jconsole & jps

If no local java process is listed, probably Java has no access to hsperfdata_<user> directory in the temp directory of the user (%TMP% or %TEMP% for Windows). The TMP or TEMP variable must not contain a '~'. "Each time a java process starts it should create a file in that directory. The file name is the pid and that is how jps and the other jvmstat tools get the process list." [1]

Options

Remote debugging

-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n

VM

-XX:+PrintCompilation
which methods are getting compiled
-XX:CompileCommand=print,*MyClass.myMethod 1
method details
-XX:+TraceClassLoading
trace class loading
-XX:+UnlockDiagnosticVMOptions
enable following options
-XX:+PrintAssembly 1
print assembly code for bytecoded and native methods
-XX:+PrintNMethods 1
print nmethods as they are generated
-XX:+PrintNativeNMethods 1
print native method wrappers as they are generated
-XX:+PrintSignatureHandlers 1
print native method signature handlers
-XX:+PrintAdapterHandlers 1
print adapters (i2c, c2i) as they are generated
-XX:+PrintStubCode 1
print stubs: deopt, uncommon trap, exception, safepoint, runtime support
-XX:+PrintInterpreter 1
print interpreter code
-XX:+LogCompilation
full logging to hotspot_pid<PID>.log

1 Use hdis*.dll (downloadable from fcml) for disassembling.

Signatures

Generate Keys

KR="keytool -keystore $JKR -storepass:env KPR -alias rootca"
KS="keytool -keystore $JKS -storepass:env KPS -alias signer"

Certificate Root CA

$KR -keygenpair -keyalg RSA -keysize 2048 -dname "CN=name, O=org" -ext bc:c -ext ku:c=keyCertSign,cRLSign -validity 365
$KR -exportcert -file rootca.csr

Sign Certificate

$KS -importcert -alias rootca -file cfhca.csr -noprompt
$KS -genkeypair -keyalg RSA -keysize 2048 -dname "$DN" -validity 365
$KS -certreq | $KR -gencert -ext ku:c=dig -ext eku:c=code -validity 365 -rfc | $KS -importcert
$KS -exportcert -file signer.csr

Signing Jar

jarsigner -keystore signer.jks file.jar signer

Installing Certificates

Choose one: Java or Windows.

Java

Open Java Console javacpl.exe
Security > Manage Certificates
Import rootca.csr into Signer CA
Import signer.csr into Trusted Certificates

Windows

certutil -enterprise -addstore Root root.csr
certutil -enterprise -addstore TrustedPublisher signer.csr

Forums

Profile for Carlos Heuberger at Stack Overflow, Q&A for professional and enthusiast programmers Stack Overflow Meta

Links

Agile Developer
Garbage Collectors
Java New Operating System
Open Source Software
Orderly Versus Abortive Connection Release in Java

Bibliography

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Noncommercial-Share Alike 2.5 License.