I would like to take advantage of the features that Maven provides for managing dependencies in a project. My brief understanding of how Maven works is that it will aquire the JARs needed and then build the project with these libraries.
Currently I have a simple POM file set up as a test:
<project xmlns="http://maven.apache.org/POM/4.0...
SWT comes with a base JAR and one specific JAR per platform (Windows, Linux/32bit, Linux/64bit, Mac, AIX, ...). How can I create an executable JAR that will select the correct platform JAR at runtime?
[EDIT] I was thinking to supply all platform JARs in a subdirectory and in main() would then modify the class loader. Has anyone already ...
This is doing my head right in!
I am messing about with JRuby trying to make some Java calls. Here is the source Im messing with.
require 'java'
module JavaLang
include_package "java.lang"
end
module JavaSql
include_package 'java.sql'
end
begin
JavaLang::Class.forName("com.mysql.jdbc.Driver").newInstance
jdbcconnection =...
Hello!
I'm trying to get myself used to jasperforge ireport before using it in a real project next week and i seem to be stacked somewhere already .i'm using ireport 3.7.0 on windows xp platform + java 1.6
It sound easy to get a field color changed based on what it contains or calculate a sum of number in a field based on conditions ...
would be great if there is a list with all values one can use with @SuppressWarnings in java.
if these values are dependent on the compiler lets say ant in netbeans. shouldn't ant then provide a full list of all supported values?
...
I'm going through the Java Trail on their Sound api and they described two types of formatted audio data (data format and file format). From my understanding of it data format tells you how to interpret the raw sound data, while file format tells you how to interpret the file that contains that data. They used mp3 as an example for a spe...
Hi,
I have a table in MySQL which name is "clienttable" and it has 11 columns that the 9th column is "yahooId" and the 11th column is "password".I have two exception : 1: SQL Syntax for line rst = stmt.executeQuery("SELECT yahooId AND password FROM clienttable");and 2: NullPoniterException for line while (rst.next()) please help me,thank...
so now i think i have learned all basics and terminology for java. but what i don´t know is how to code and display a web page with Netbeans in Java.
the most tutorials contains lots of talks about different technologies "Java uses Java Beans, JSP and servlets" and so on. Where can i find short practical tutorials that actually teach me...
Hi,
I got a recommendation to use this syntax when logging in java:
if (logger.isLoggable(Log.FINE))
{
logger.fine("bla"+" bla"+" bla");
}
The reason for this is to avoid the redundant construction of the parameter string incase the logging level is lower than "FINE". (in the example above - 5 redundant string object. (" bla"X3, ...
I am looking for OpenCV java bindings, all the references point to the processing library. I know processing is java but isn't there a standalone java lib? or should just use processing libs?
...
Hi! I want to read ms-excel file in java and I've also downloaded the compressed file containing 'poi' api by Apache( on the site http://jakarta.apache.org/poi) but where actually to unzip it? means in which path?? whether in org.Apache or somewhere else??
...
i'm using netbeans and when i create a new web application project i click the "Add" to add a server cause in a tutorial they are using tomcat and not glassfish.
I then choose Tomcat 6.0 from the list and the next page is displayed where i have to input
Server Location
Username
Password
I dont get this part. What location do they me...
Im attempting to use the MVP design pattern with a Swing application in conjution with Spring IOC. In MVP the View needs to pass itself into the presenter, and I can't work out how to do this with Spring.
public class MainView implements IMainView {
private MainPresenter _presenter;
public MainView() {
_presenter = n...
This is in Java, but I can always revert to C via JNI if needed.
I have a system with two NICs, each connected to a distinct subnet. I want to use multicast (in particular, SDP) to discover other hosts on both networks.
One network is easy: create a MulticastSocket on the specified port, joinGroup it, and I get packets. Simplicity.
Tw...
Hi I am building div content with AJAX call, but when I make call to any page from loaded page, if there is any exception the content loaded from AJAX call is not there in previous page. Is there any way to stop happening that?
...
when i click on Run it displays and error message:
Starting GlassFish v3 Domain
GlassFish v3 Domain start failed.
/Volumes/Private/noname/Sites/projects/java/MyFirstServlet/nbproject/build-impl.xml:602: Deployment error:
GlassFish v3 Domain start failed.
See the server log for details.
BUILD FAILED (total time: 2 minutes 0 seconds)
bu...
Hi ,
I was refering to a solution from wikipedia for Singleton Pattern:
public class Singleton
{
// Private constructor prevents instantiation from other classes
private Singleton() {}
/**
* SingletonHolder is loaded on the first execution of Singleton.getInstance()
* or the first access to SingletonHolder.INST...
actually, what is a deployment descriptor?
do i really have to care about it when using Netbeans, cause i read something that it was optional. and that you could use annotations instead of configuring in xml files?
could someone give me the whole picture of this?
...
what actions should be taken in the pauseApp method of a Java ME midlet. what is the purpose of having this method.
...
hi this is salma.i am doing project.i need any opensource tool or technique to find the semantic similarity between sentences where i give input as two sentences and output as score (i.e.,semantic similarity).can any one know this information.i hope i will get reply soon.thank you all.
...