Hi Experts,
I am new to oracle connection manager. Can some help me with a Java Client code example to talk to a oracle database thru oracle connection manager.
Thanks
Sam.
Are there any java libraries (Apache Style licenses) which provide a higher level of abstraction for unit conversions. e.g.
kilograms to grams or grams to kilograms
meters to centimeters or centimeters to meters
ft - inches to centimeters
I have looked at JSR 275 but it seems to be in a rejected state. Any Apache 2.0 style license will definitely help me here.
I have a java class that uses complex static fields which need special operations as close() so that they are safely cleaned by GC.
For the initialization of static fields I use the static block. But I don't now how to unload the static field safely, so that I can call the close() method before the field is cleaned up by GC.
Is there any way to unload a static field, similar to the static initialization block?
Hi all,
I need to convert the file path in windows say C:\Documents and Settings\Manoj\Desktop for java as C:/Documents and Settings/Manoj/Desktop .
Is there any utility to convert like this.?
I've downloaded, unzipped and setup Eclipse 3.4.2 with some plugins (noteable, EPIC, Clearcase, QuantumDB, MisterQ).
Now I find when I'm editing Java projects the code completion is not working. If I type String. and press ctrl-space a popup shows "No Default Proposals" and the status bar at the bottom shows "No completions available".
Any ideas?
Thanks....
How can I get in Java the DTD file name specified in an xml file?
So, if I have:
<!DOCTYPE TEI SYSTEM "dtd-file.dtd" [
[
<!ENTITY c24r SYSTEM "c2r.jpg" NDATA JPEG>
<!NOTATION JPEG SYSTEM "image/jpeg">
<!ELEMENT figure EMPTY>
<!ATTLIST figure entity CDATA #REQUIRED>
]>
I want the string "dtd-file.dtd"
I have a Java Map (out of Strings and Ints) object that I want to save to a database.
Is there a standard way to go about this task?
Is there a way to compress the Map to take less space on the harddrive?
I want to print the content of a simple text file in java exactly the way the text appears in the text file. The print out has the same content as the text file but the format is not the same. tabs and line breaks are ignored in the print out. Any help will be very much appreciated.
I want to print the content of a simple text file in java exactly the way the text appears in the text file. The print out has the same content as the text file but the format is not the same. tabs and line breaks are ignored in the print out. Any help will be very much appreciated.
I have been using XSL-FO and FOP Engine to generate PDF documents for required data. This works great, but lately I have seen some limitations in FOP especially when it comes to allowing user to enter text in a html editor which can be transformed to XSL-FO and given to FOP driver.
This brought me to point to ask this large community of well informed individuals about what are possible Open Source or even non open source libraries to generate PDF documents in Java?
So suppose I'm developing a chess-like program using Java's Swing. I added a MouseListener to handle user input. To make a move the user must click a valid piece and then click a valid place. What's the best way to track the 2 mouse clicks in a turn? I'm thinking in use some kind of variable to record if is the turn's first click or second.
class java.io.FileReader not found
I need this in order to get the file and then parse it with an xml parser.
Anyone know any alternatives for this class?
I have a java string which has an dollar value and cents value after decimal points and starting with a + or - sign. I want to convert into cents and store it in a integer (it can have + or -). Also i need to check if the cents part (after decimal point) not more than 2 digits and throw an error message if exists
example :
String dollval= "12.23" ,"12","-0.09", "-99","-99.0", "-99.23","0.00"
int dollint = 1223,12,-9,-99,-00,-9923,0
By extending class Vector, Java’s designers were able to create class Stack quickly. What are
the negative aspects of this use of inheritance, particularly for class Stack?
Thanks a lot.
Recently I ran into this error in my web application:
java.lang.OutOfMemoryError: PermGen space
It's a typical Hibernate/JPA + IceFaces/JSF application running on Tomcat 6 and JDK 1.6.
Apparently this can occur after redeploying an application a few times.
I have to develop a specialised report editor in Java. The user will get a number of fields that can be layed out on a page plus some graphical elements. The resulting report design needs to be serialized into already defined database tables.
Is there any software library that will help to achieve this without reinventing the wheel? I have come across Eclipse GEF and Zest, but I am not sure if this really meets my problem.
If you hover over a standard library Java method in Eclipse, you get a hover over dialog. How can you change the color of the text in that hover over dialog ?
Thanks,
Ankur
Can anyone help me on how I have to run a java application which is in a package, from cmd?
Okease give me the necessay line that I have to type
Thank You
Hello.
Are there open source libraries for Java to make implementation of drag and drop easier?
I plan to make something like the one shown below:
The program is Alice, where you can drag some elements on the left and nest them to the right. It's open source, but they did not use any libraries I think. I'm wondering if we anyone know of open source frameworks that work this way, or assist in doing complex drag and drops.
Does anyone know of any tool that can facilitate/ease porting of an app to both Java Swing and GWT?
I've got a few "screens" that makes complete sense to have both in a desktop app and in a browser and I was wondering if there was some kind of common API that could be targetted that would facilitate creating these two different "views" (see my comment)?
Does anyone know of a way, in Java, to convert an earth surface position from lat, lon to UTM (say in WGS84)? I'm currently looking at Geotools but unfortunately the solution is not obvious.
I am trying to load a dll in java using the following code
System.loadLibrary("mydll");
The project is placed in D:\development\project\ and i have placed the dll on D:. I then gave following VM argument in eclipse configuration
-Djava.library.path=D:/
But when i run i get UnsatisifiedLinkerError. After googling a bit, I used
System.load("D:\mydll.dll");
but again getting the same problem, could someone can help?