java

Where can I go to learn Java

Duplicate: Question 167179: Java Tutorial I want to learn Java because I want to program for the Android but don't know the best place to look. Where did you go. ...

Why CVM is called C Virtual Machine, from SUN for CDC (J2ME)?

Why does Sun call their VM for CDC devices C Virtual Machine ? Isn't that confusing. I mean it appears that is a virtual machine for the C language, not java. On the mobility faq sun says: FAQ question: What is the difference between a Java virtual machine (JVM) and a C virtual machine (CVM)? Answer: The short answer is that ...

which SessionFactory should be use for transactionManager?

<bean id="projectService" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"> <property name="transactionManager" ref="transactionManager"/> <property name="target"> <bean class="com.company.project.company.services.ServiceImpl" init-method="init"> <property name="HRappsdao" ref...

persistence-unit as RESOURCE_LOCAL or JTA?

1.may i know what is the different of both? both also supported by all database right? 2. jpa transactionmanager and jta transactionmanager different? can explain? ...

JUnit Eclipse Plugin?

I feel stupid for not being able to find this, but where is the JUnit plugin for Eclipse? I've included the latest .jar in my buildpath, but I still don't have the option to create a new test case, run test cases with the green/red bar, etc. I need the plugin for this, right? EDIT: I'm using "Eclipse for PHP Developers". So perhaps that...

Are there any architect certifications?

Are there any architect certifications which improve my skill and are recognized around the world? ...

JSF 2.0 Components

Does anyone know of any good resources for JSF 2.0 components? I'm trying to develop a file upload component to teach myself JSF 2.0 and Servlet 3.0 but I'm having a hard time finding resources. I've been looking at the Mojarra 2.0.2 source but it seems like a lot of their stuff is still using JSF 1.x concepts. Any insight is appreciated...

Maven and the JOGL library?

I've been studying Maven in my free time over the last several days but can't seem to figure out how to organize a project so that the JOGL libraries are used. I would preferably like the following: Automatically download, if necessary, the OS-specific JOGL zip file from here (contains 4 jar files and some native library files (.so/.dl...

Balancing Design Principles: Unit Testing

I am writing a simulation of Bananagrams. Currently, I have a GameMaster class that maintains the common collection of pieces. The deal(Player) method deals a certain number of pieces to that player. I want to write unit tests for this. However, at this point, I have no getters, and thus no way to check the status of the objects. Why n...

Java: Concurrency for a game

I'm writing a simulation of Bananagrams for fun. I want to use concurrency but I'm not entirely sure how. I have a main method in a Game class. Each of the player threads works towards a solution. At certain points, a player will "peel". During this operation, every player is dealt a new tile. One of the player threads must notify the G...

Blog softwares/Blogging platform available for Java

Hello friends, I am java geek. And i have started writing a blog (using wordpress ). But blog customization is pain as PHP is not my thing. And also I want to make it part of my website.. like login/session/etc should work out of box.. I know Pebble , but it does not support Google App Engine[GAE]. As it writes data to XML files. Does ...

can java applets (not signed) create / read cookies?

I was wondering if it's possible to write cookies to clients from unsigned applets. ...

Decrypting a file in Java and exporting it to a file without going into infinite loops?

How do you decrypt a file in java and export it to a file without having to end up in an infinite loop if you have more than one user and password. Here is my code and at the end is my test file: import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOE...

Grails Scaffolding is not storing reference for given domain structure

Hello, Usecase: Player may have award or may not have. If player never had any award then Award will be null, ( 1. Is there any other way to do this.. without null.. I don't feel its good idea) I am generating scaffold for following domain structure. class Player { String name Award recentAward static constraints = { ...

GWT 2.0 Themes?

The default GWT themes are hideous. Does anyone know where a developer can find prepackaged themes that one can just 'drop' into an app and make the app look beautiful? Even worse, GWT 2.0's new Layout widgets do not have any visual styling or themes. Thanks, JP ...

Simple Java Display Images

I have a GUI written using netbeans with a few simple components in place. I want to be able to draw images (any file type, whatever's easiest) alongside the GUI components inside the JFrame. Don't have to resize them, just draw them as they are, at the x and y location of my choosing. There will be several images being drawn at each up...

Problem With Data Insertion in Ms Access

import java.sql.*; public class NewConnection{ private static Connection con; private static ResultSet rs; private static Statement sm; private static final String DRIVER = "sun.jdbc.odbc.JdbcOdbcDriver"; private static final String URL = "jdbc:odbc:Driver={Microsoft Access driver (*.mdb)};DBQ=E:\\Database.mdb;"; pr...

Cleaning a buffer before termination

I'm writing a program similar to the producer-consumer problem. Here's my main code: public class PipeProcessor { private volatile boolean close = false; Pipe pipe; Output out; public PipeProcessor(Pipe pipe) { this.pipe = pipe; } public void run() { while(!close) { out.output(pipe.get()); } while(pipe.size() > 0) out.outp...

Listen to a shoutcast with Android

Hey, since quite some time I'm trying to listen to .pls files (shoutcasts). I have to say that I failed horrible. Since StreamFurious can do it it must be possible. First I tried to connect to the shoutcast via sockets (TCP and UDP) --> failed. I couldn't even receive one byte from the server. I'm at the verge of tears. I don't even ha...

general question about Java Swing

I have made a Swing application which is rather simple in functionality. However the code which it consist of became rather large and very messy in my opinion. All the swing components and actions is in one file. So for instance if I was to make a even larger application with more functionality the code will be rather hard to go through....