j2se

When can DataInputStream.skipBytes(n) not skip n bytes?

The Sun Documentation for DataInput.skipBytes states that it "makes an attempt to skip over n bytes of data from the input stream, discarding the skipped bytes. However, it may skip over some smaller number of bytes, possibly zero. This may result from any of a number of conditions; reaching end of file before n bytes have been skipped i...

Windows Mobile 6 J2SE-scale JVM implementation

Does anybody have experience of a decent J2SE (preferably at least Java JDK 1.5-level) Java Virtual Machine for Windows Mobile 6? If you know of any CLDC VMs, I'm also interested because even that would be better than what we currently have for the platform. ...

Which Java API would you recommend for dealing with Bluetooth?

Can you recommend a Java API to use with a desktop application (i.e. J2SE not J2ME) that will, perhaps, work with the underlying operating system's Bluetooth stack to give access to Bluetooth functionality and devices? ...

How can I work with Novell eDirectory services in J2SE?

How can I work with Novell eDirectory services in J2SE? Will JNDI work with eDirectory? What are some resources I can use to learn about whatever library or libraries you suggest? I just want to play around with retrieving information via LDAP for right now, and if I get things working the way I want, I will probably need to be able t...

Is there a better Java application framework than Swing?

I'm planning to work on some hobby Java projects. I've done some small-scale projects, so I'm familiar with the language itself and building a GUI with Swing. I'd like to make my work a little less ad-hoc and perhaps find some tools that might be useful out in the real world. NetBeans now comes bundled with the Swing Application Framewo...

Correct: Java "enterprise" edition = Java "internet" edition?

I am reading books on middleware, Spring, Hibernate, etc., and am wondering myself why the developer invented a new name, i.e. "enterprise edition" for Java "web" or "internet" libraries? As I have a quite individual mindset, "enterprise" edition sounds almost like "socialist" edition... what do I need to know to differentiate better? ...

What is a good open source J2SE JTA TransactionManager implementation?

Basically, what it says on the tin; I need a JTA implementation useable in a J2SE application, ideally one that doesn't carry too much of a framework burden with it. ...

How can I configure hibernate to use context-specific connection information?

I'm writing a J2SE (Note, not JEE) application using Hibernate, and I need to provide a different connection to Hibernate for each thread of execution. These connections must be pooled, and each one has at the very least different authentication and, possibly, a different JDBC URL. The connections will be re-used (as can be inferred fr...

monitoring & alerts for a j2se application

I am designing a J2SE application, and looking for a solution for monitoring and alerts. The requirements are: Objects can report their status and issue alerts when they have problems. Calling some pre-defined methods on specific objects (e.g. to dump their state). Monitoring JVM health, especially memory usage. Preferably access all o...

What do I need to do to integrate JTA into a J2SE application?

Suppose I want to implement an application container. Not a full-on JEE stack, but I need to provide access to JDBC resources and transactions to third party code that will be deployed in an application I'm writing. Suppose, further, that I'm looking at JBossTS for transactions. I'm not settled on it, but it seems to be the best fit f...

Where can i find Code for implementing randomization techniques in Graph Mining.

Hi, Where can i find code that will give me an idea for implementing randomization techniques in Graph Mining Please provide me the links or material Thanks in advance. Regards, sri ...

Calling the overridden protected method of a class higher up in the hierarchy

Consider the following classes in Java class A { protected void methodA() { System.out.println("methodA() in A"); } } class B extends A { protected void methodA() // overrides methodA() { System.out.println("methodA() in B"); } protected void methodB() { } } public class C extends B // ...

Get Windows Service Pack Version from Java Applet?

Hello I am writing a Java Applet. When run on Windows, I need to be able to get the clients OS version, e.g. Windows XP SP3 or Windows 2000 SP4. I can currently use the following: String os_name = System.getProperty( "os.name" ); String os_version = System.getProperty( "os.version" ); System.out.println( "Running on " + os_name + ...

What should a junior Java developer know?

What skills should a junior Java developer have? I'm also interested in iPhone (Objective-C) development. What technologies/languages should I know to get a position as a Java developer or an iPhone/Obj-C developer? J2SE preferable... What would be better - study only Java/Objective-C or try to work with two? ...

Java(J2SE) and Bluetooth

Hi. I want to write some small program. It will run on my computer(laptop) with bluetooth adapter and then discover all the visible bluetooth adapters(phones, printers, other computers, etc.), but i've not worked with bluetooth in Java before... Help me to find starting point, pls. What SDKs or libraries i must download first? What liter...

[Java(J2SE)] Store data(strings) in database

I have a Vector < String >. Now i want to store those Strings in database. But i have one "but"! The program user mustn't install anything else except J2RE, he will just copy program to his computer and run. Does java has such kind of database? P.S. Previously i think about object serialization or just simple text\xml file but according...

How to start bluetooth pairing process?

I have an Java application on my PC and database.There are some MAC and PIN data in DB. I'm sending messages (now it's text files over OBEX put method, but in future it will be SMS messages i hope :) ), so when i discover some device, then discover needed service i'm looking to the DB and if the phone MAC in the DB i need to start ...

Is there something in j2se or Jakarta commons thats converts a number to an array of digits?

I hate to code what is already available. I can't seem to find in Jakarta commons a method that would to the following: long x= 12345; int[] digits = toDigitsArray(x); //[1,2,3,4,5] So before I code my own toDigitsArray() method does anyone know if the equivalent exists either in j2se or in commons? ...

FATAL ERROR in JNI code - presumably in JDIC library

I am using a Java coded desktop application to track my time on projects. I used it until the IT did a new setup on my station. And now I cannot launch this application. I got a log file when I launch it saying: # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d...

Java Execution Context Class Explain

I wanted to grab the concept of "Execution Context class" . I'm refering to this post at http://tinyurl.com/ryjn5o . Can anyone enlighten by explain more on how to create such class ? ...