| Location of Temp Directory? |
|
 |
Index ‹ java-programmer
|
- Previous
- 1
- JComboBox strange behaviorHello!
I have interesting problem with javax.swing.JComboBox (java 1.4.2)
When I click at combo to open list - there is no reaction to mouse
moves except these on combo header or outside my combo. So I cannot
choose any item from the list.
But I can use keyboard...
This is default combo, I've just create it and populate some Strings
into it.
any idea what's wrong?
B.
- 1
- Vetoing a change by DefaultCellEditor in JTableI'm using a DefaultCellEditor with a JTextField to capture a String
that is ultimately passed to setValueAt in my TableModel. In that
method, I have logic which could throw an exception if the String's
contents proves to be invalid (i.e. one use is where the String is a
regular expression that might be syntactically invalid).
How can I handle this? Right now, the code throws an Exception which
I'd like to catch, display a dialog, and then return the user to
editing without ever committing the value. Is this easily doable?
Regards,
Brian.
- 3
- 9
- How to receive events from a jcombobox in an internal Jpanel ??Good evening,
I've a Frame with two Jpanel, in Jpanel1 I've a Jcombobox and it's
listener while in Jpanel2 I've a JLabel where I want to write the
selected value of the Jcombobox,
Jpanel1 , Jpanel2 and the main frame are in 3 separate class and files,
this because I want to arrange a modular design.
My question is how I can receive in the main Frame the event coming
from Jcombox value changed in Jpanel1 ???
Thanks for your help
Antonio
www.etantonio.it/en
- 10
- PrintServiceLookup.lookupPrintServices fails to list new printers until re-start (JDK1.4.2_03, Linux RedHat, Tomcat 4.x)Hi Forum,
How could I get
javax.print.PrintServiceLookup.lookupPrintServices(null,null) to return the
current available services while the program that uses lookupPrintServices
is running? In a tomcat servlet I use the lookupPrintServices(..) to get a
list of the printer services available. The class works well and returns the
list but if I install a new printer, the servlet does not list the newly
installed service until I restart Tomcat. Is there a way to unload and
reload the PrintServiceLookup class and then call
PrintServiceLookup.lookupPrintServices?
It appears that the lookupPrintServices(..) returns the list of services
that was available when the instance of the virtual machine was started.
Hence, while the instance is running, it allways returns the same list of
services. If I run a program that lists the services and then exits, the
program lists the newly added printer on re-run. But if the program never
exits (it runs in a loop, re-listing the services every so often), and I add
a new printer while the program is running, the newly added printer is not
listed until I terminate teh rpogram and re-start it.
Thanks in advance for your responser
- 10
- Java FACT ?"FACT: Java has no first-class functions and no macros. This results in
warped code that hacks around the problem, and as the code base grows,
it takes on a definite, ugly shape, one that's utterly unique to Java.
Lisp people can see this clear as day. So can Python folks, so can Ruby
folks. Java people flip out, and say "macros are too much power",
or "what do u mean i dont understand u" or "fuck you, you jerk,
Lisp will NEVER win". -- Steve Yegge, 2006-04-15
what would you people make of the above statement ? Has anyone here
used Lisp *and* Java on major projects ? If so would you say this
sounds off-base or correct ?
thanks,
--dcnstrct
- 11
- Java encryption <--> .NET encryptionHajo,
I need to exchange encypted data between
.NET and Java environments. The first
problem I encountered is that symmetric
ciphers in .NET needs initialization
vector and Java counterparts don't.
Can some one point me out the place
where I can find any practise and
patterns for encrypted communication
between Java and .NET ?
thanks for any info
Gawel
- 12
- src.zip of j2ee1.4 sdkHi,
I downloaded the j2ee1.4 sdk, but I can't seem to find the source files
in that package. They used to be in a src.zip file, or not? Anyway I
already looked at the Sun website, but I didn't find a URL to download
the source files from.
Kind regards,
Dirk
- 13
- Reference and Garbage CollectionI'm not quite sure about what kind of references to an object determine
its "alive" quality and its readiness for garbage collection. For the
moment I understand that *any* living reference, including non-explict
of member classes, keep the object alive.
Would you agree that the follwoing class "NeverRelease" entails
instances which will never get prone to garbage collection?
class NeverRelease
{
Child1 child;
public NeverRelease ()
{
child = new Child1();
}
private class Child1
{
}
}
While would you also agree that instances of the following class
"AlwaysRelease" always become garbage because the member class is static
and hence does not take reference to the enclosing class?
class AlwaysRelease
{
Child2 child;
public AlwaysRelease ()
{
child = new Child2();
}
private static class Child2
{
}
}
- 14
- Help needed (GUI/passing objects)
Hi, I'm a student learning java. In my latest assignment, I am to create a
Scheduler/Diary, with a GUI.
I am getting the error
Exception in thread "main" java.lang.NoSuchMethodError: BaseFrame: method
<init>
()V not found
at Dairy.main(Dairy.java:22)
From the main method in 'project.class', I create the diary object, which
creates month and day objects etc...
I create a state object, which takes in the Diary Object and points to the
selected month, day, appointment etc
I then create a gui object, which is to change the state (through methods in
the state).
This error occurs whenever I pass in the state object to the GUI
('BaseFrame').
Exception in thread "main" java.lang.NoSuchMethodError: BaseFrame: method
<init>
()V not found
at Dairy.main(Dairy.java:22)
I'm not sure whats causing this. I'm checking like 22 in the 'diary' class,
but it's a }. Not too helpful.
GUI appears when no state object is passed, can't manipulate the data with
that though....
In main:
------------
//set up the Diary
Diary dia = new Diary();
//set up the state
State diaryState = new State(dia);
//Set up the gui
BaseFrame firstFrame = new BaseFrame(diaryState);
---------------
When setting up the GUI:
---------------
State curState;
//constructor for the basic frame, takes in a state object
public BaseFrame(State sta)
{
curState = sta;
.....................}
--------------------------
Done a search online, didn't get too far. Any ideas? What does that error
mean exactly?
- 14
- Any HID support for Java?Human Interface Device (mouse, etc)
Does anyone know whether java support the HID devices? (under MS
Windows)
I checked the document but did not see any. A google on this group
also returns little information.
Thanks a lot.
- 14
- 15
- performance and memory usage.
Hi
I created a test program to try the speed and size management of the JDK
HashMap. With regards to this I was wondering if anybody has any
comments on whether this is an appropriate way of testing this
performance, i.e. how realistic is the results with respect to caching
influence of data, heap management etc. The code is simple, but would it
produce a correct result. (the program finishes in 11 seconds on my
machine). the code is attached.
Secondly, I was wondering about the memory (heap) usage in java for this
program. It needs at least 256 MB of heap to run to finish. cmd:
java -Xms32m -Xmx256m -cp target/classes/ App
Using -Xmx128m causes OutOfMemoryError.
When calculating on the size of the datastructure i find approx that
2M Dto's = 16MB
2M Integer's for map key = 8MB
2M Integer's for ArrayList = 8MB
Thats a total of 32MB plus some megabytes for the objects,
datastructures, JVM and so on. So probably about 48-64MB in total.
Thats a completely different number from 128 MB or 256 MB.
Does anybody have any comments on why the program requires that much memory?
arnie
*****************
/* Create 2 million Dto objects with random data and insert into HashMap
also add key to an iterable list */
public void test1() {
int size = 2000000;
Map<Integer, Dto> hmap = new HashMap<Integer, Dto> (size);
Collection<Integer> alist = new ArrayList<Integer> (size);
Random r = new Random();
Dto data;
for (int c=size; c>0; c--) {
data = new Dto();
data.ip= r.nextInt(2000000000);
hmap.put(data.ip, data);
alist.add(data.ip);
}
int c = 1;
for (Integer d : alist) {
hmap.get(d);
}
}
/* Simple data placeholder */
public class Dto
{
public int ip;
public int serialnum;
}
- 15
- Precision problem with doubleHi everyone,
I am a Java beginner, and I am trying to create a very simple binary
tree.
Each node has a value, the left child has the same value + an
increment, the right child has the same value - the same increment.
I try to recursively create the tree, but I have precision problems.
My "main" node has a value of 10, the increment is 0.1, tree depth is
4
So i want a tree that goes like this :
depth 1 : 10
depth 2 : 0.9 / 10.1
depth 3 : 0.8 / 10 / 10 / 10.2
depth 4 : 0.7 / 0.9 / 0.9 / 10.1 / 0.9 / 10.1 / 10.1 / 10.3
But at depth 4 when I try to print the value I get 9.700000000000001
instead of 9.7, and 10.299999999999999 instead of 10.3
And things get worse when the depth increase.
All the values and increment are stored in double (native type).
Is it normal? How can I avoid this problem?
Thanks a lot,
Tom.
[main class]
double increment = 0.1;
double startValue = 10;
int maxDepth = 4;
Tree myTree = new Tree(startValue, 1);
myTree.recursivelyCreateChildren(increment, maxDepth);
[Tree.java]
public int depth;
public double value;
public Tree leftChild;
public Tree rightChild;
Tree(double value, int depth){
this.value=value;
this.depth=depth;
System.out.println("node of depth " + depth + " created, value = " +
value);
}
public void createChildren(double increment){
rightChild = new Tree(value - increment, depth+1);
leftChild = new Tree(value + increment, depth+1);
}
public void recursivelyCreateChildren(double increment, int maxDepth)
{
if (depth < maxDepth){
createChildren(increment);
leftChild.recursivelyCreateChildren(increment, maxDepth);
rightChild.recursivelyCreateChildren(increment, maxDepth);
}
}
- 15
- JNI: passing Objects containing non-primitive types back and forthHi folks,
looked through a lot a threads overhere already but did not find an
answer detailed enough:
I want to map a c-structure like this created in my native code
struct mystruct {
long pid ;
long data[] ;
long meta[][] ;
} ;
to a java-object within my Java-code which would look like this IMHO:
public class ComplexData {
final int maxdata = 100 ;
final int maxmeta = 5 ;
private long pid ;
private data[] = new long[maxdata] ;
private meta[][] = new long[maxdata][maxmeta] ;
public void ComplexData() {
// Assigning values
pid = 1234 ;
data[0] = ...
}...
As far as I understood it is now possible to pass this Java-object to
the native code using the JNI-Function NewObject and read the members
and assign their values to the c-structure's members (to make them
available from within c) and the other way round, assign the values
from the c-structure to the members within the Java-object (possibly
without the initialization in the "Java-world" (I need both
directions).
My problem now is: How do I access the object's members (especially
the array types) from within c? Functions pointed to in different
threads (e.g. (Get|Set)LongArrayRegion ) need the reference to the
array, but I have only the reference to the object up to now.
Any code snippets based on the code above would be helpful.
Cheers
Bernd
|
| Author |
Message |
Barkster

|
Posted: 2006-5-23 5:46:00 |
Top |
java-programmer, Location of Temp Directory?
I'm having an app developed for me and they are storing the files in a
newly created folder on the C: drive but I don't want to make directory
there. Is there not a way to get the temp variable for machine, like
%temp or %tmp? Thanks
|
| |
|
| |
 |
Real Gagnon

|
Posted: 2006-5-23 5:55:00 |
Top |
java-programmer >> Location of Temp Directory?
"Barkster" <email***@***.com> wrote in news:1148334332.450198.40590
@u72g2000cwu.googlegroups.com:
> I'm having an app developed for me and they are storing the files in a
> newly created folder on the C: drive but I don't want to make directory
> there. Is there not a way to get the temp variable for machine, like
> %temp or %tmp? Thanks
>
>
( http://www.rgagnon.com/javadetails/java-0484.html )
String tempdir = System.getProperty("java.io.tmpdir");
if ( !(tempdir.endsWith("/") || tempdir.endsWith("\\")) )
tempdir = tempdir + System.getProperty("file.separator");
Bye.
--
Real Gagnon from Quebec, Canada
* Looking for Java or PB code examples ? Visit Real's How-to
* http://www.rgagnon.com/howto.html
|
| |
|
| |
 |
Chris Smith

|
Posted: 2006-5-23 7:58:00 |
Top |
java-programmer >> Location of Temp Directory?
Real Gagnon wrote:
> String tempdir = System.getProperty("java.io.tmpdir");
>
Or File.createTempFile is often better, depending on the situation.
--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
|
| |
|
| |
 |
Barkster

|
Posted: 2006-5-23 9:37:00 |
Top |
java-programmer >> Location of Temp Directory?
Thanks guys, I think my devoloper just copied some code over I would
hope he would have know this. Appreciate it.
|
| |
|
| |
 |
Barkster

|
Posted: 2006-5-23 9:38:00 |
Top |
java-programmer >> Location of Temp Directory?
Does this work on win and mac? Thanks
|
| |
|
| |
 |
Steve W. Jackson

|
Posted: 2006-5-24 5:03:00 |
Top |
java-programmer >> Location of Temp Directory?
In article <email***@***.com>,
"Barkster" <email***@***.com> wrote:
> Does this work on win and mac? Thanks
It works with all platforms. The java.io.tmpdir property tells you
where the JVM will store temporary files and is set by the
implementation.
--
Steve W. Jackson
Montgomery, Alabama
|
| |
|
| |
 |
Barkster

|
Posted: 2006-5-24 5:56:00 |
Top |
java-programmer >> Location of Temp Directory?
Thanks!
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Creating HTML files from Java accessing OracleHello folks,
I have some queries that folks would like to have as HTML reports. At
first I tried Oracle Reports but it's HTML output seems really poor
and not 508 compliant which is an issue for us. I'd like to use JAVA
(I use Jdev as my IDE right now.) but was hoping someone might have
some insight on the best way to tackle this. I guess I am looking for
methods that would make things easier rather than just outputting
print commands line by line. :)
Thanks folks...
- 2
- Image Processing Problem. Need HelpHello, I am writing a web application with Java. There is a function that
user can upload a picture to server, and the server will resize it. I am
using the Java API to do this function. However, the result is not very
satisfactory. The resized image quanlity is very bad.
Can anyone reccommend that any way or tool can resize image with good
quality?
Please help. My boss needs me to complete this project this week.
Regards,
Chris
- 3
- KENT DOLAN == DUSTY HILL!!! (was: Travelling Salesmen, the Gimpand KPDolan)"JTK" <email***@***.com> wrote:
> dragonfly99 wrote:
>> i saw your webpage. i was impressed.
>> http://www.anycities.com/user/xanthian/TravellerArt/TravellerArt.html
>> Can you lay down more specifics about
>> the structure of your Travelling
>> Salesman and/or random walk
>> algorithms? i'd be much obliged.
See http://www.well.com/user/xanthian/java/TravellerDoc.html ;
sadly that links to a jar file containing a version about
1/3rd the size of the one I'm running now, which contains a lot
more featuritus captured as Java, but is nowhere near ready to
publish. If you want a "warts and all" copy of the current work
in progress, I can send one to you by email.
> OH MY GOD, KENT IS ACTUALLY ZZ TOP
> BASSIST DUSTY HILL!!!!!:
Funny you should say that. When I was
courting my current wife, she showed the
secretaries working for her a picture of
me, with an earlier incarnation of the
same beard (this was 1991) , and to a
one they responded: "You're marrying ZZ
Top!?!" I was a lot cuter then.
> http://www.lowpft.com/dustwed2.jpg
> http://www.anycities.com/user/xanthian/KentImages/KentByTreeHeadAndShouldersNoFlash.jpg
Posting unworkable URLs doesn't much
help. In anycities rabid insistance
that you get a chance to read one of
their misleading and deceptive "improve
your website" ads, before seeing
anything useful, they disable direct
access to anything that isn't an HTML
file they can corrupt.
To see the above picture thus takes
two steps:
Click here:
http://www.anycities.com/user/xanthian/KentImages/KentImages.html
Then choose the top link "this" to see
the above picture. If you look at some
of the others, you'll notice I've added
a bit of fur.
> TELL ME WITH A STRAIGHT FACE YOU CAN
> TELL THE DIFFERENCE!!!!!!!!
How to tell it's Dusty and not Kent the
man from xanth:
1) Dusty still has a lot of orange color
in the sides of his beard; mine is snow
white except for a score of black hairs
in my moustache.
2) No time in my entire life have I had
a babe like that on my arm, counting two
wives and a daughter all in wedding gowns.
> HE'S BAD, HE'S NATIONWIDE!!!!!!!!!!!!!!!!!!!!!
Worldwide actually, but hardly
admirable.
xanthian, the homelier twin.
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
- 4
- Trusting ceritificates where CN does not match website hostnameJDK 1.4.2_08
I am getting the following exception:
javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: No trusted certificate found
at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA12275)
at
org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:224)
I have imported the certificate into the cacerts file via keytool -import.
However, my problem is that, the operator has setup a development and
production website, where the hostname naturally differs ... but both
development and production URLs have the same certificate.
That is, the production, Verisign-signed server certificate is the same
certificate on the development website. This ceritificate, therefore, has
the common-name ( CN ) set to the hostname of the production website.
Thus, even if I import the certificate into the cacerts file, because the
server certificate' CN does not match hostname of the website, I get the
exception above when connecting to their development website.
Apart from implementing DummyTrustManager as per this article:
http://www.javaworld.com/javatips/jw-javatip115.html
... which I'd rather not, is there any other workaround ??
- 5
- Error :could not initialize interface awt - Exception:java.lang.ExceptionInInitializerErrorHello
i had problems by the install of the german language pack 6.0.2.CF1
for a Lotus domino Server 6.0.2 CF1.
the System:
Acer altos 19000 Server
2X Pentium Pro 200 Mhz
512 MB Ram
OS windows 2000 Server SP4
the Update of the Notes Server was no Problem but when I tried to
install the Language Pack German (its an Java install Wizard ) there
coms the following Error Message :
Error :could not initialize interface awt - Exception:
java.lang.ExceptionInInitializerError
and if i installd the java software jre 1.3.1 standart the Aplet in
Systemcontrol could not be opend without anny Error Message.
what can I do?
Please help.
Thanks for Help
Stefan Germany
- 6
- Extending the code
I have the following code but i want to add a function which will allow
me to count the number of vowels in the text file. I was wondering if
anyone would be willing to give me some help with this
[CODE]
import java.io.*;
import java.util.*;
public class App {
//Create BufferedReader class instance
public static InputStreamReader input = new
InputStreamReader(System.in);
public static BufferedReader keyboardInput = new BufferedReader
(input);
public static void main(String[] args) {
int[] lengths = new int[100]; //Runtime error if the file contains a
word of more than 100 characters
int longestWord = 0;
for(int i = 0; i < lengths.length; i++) {
lengths[i] = 0;
}
try {
System.out.println("Enter the name of the file you wish to read:
");
String fileName = keyboardInput.readLine();
FileReader file = new FileReader(new File(fileName));
BufferedReader myFile = new BufferedReader(file);
int numTokens = 0;
int numWords = 0;
int numChar= 0;
String line;
while ((line = myFile.readLine()) != null ) {
String[] words = line.split(" ");
numWords = numWords + words.length;
for (int i = 0; i < words.length;i++) {
numChar = numChar + words[i].length();
if(words[i].length() > longestWord) {
longestWord = words[i].length();
}
lengths[words[i].length()] = lengths[words[i].length()] + 1;
}
}
System.out.println("\nThere are " + numWords + " words in the text
file");
System.out.println("\nThere are " + numChar + " characters in the
text file");
System.out.println("\nThere length frequency of the words is as
follows:");
System.out.println("\nLength : Frequency ");
for(int i = 0; i <= longestWord; i++) { //Print frequencies only up
to the longest word
System.out.println(i + " :"+lengths[i]);
}
myFile.close();
}
catch(IOException iO) {
iO.printStackTrace();
}
}
}
[/CODE]
- 7
- 8
- Is Eclipse the Commercial IDE Killer?Thomas G. Marshall wrote:
> Super Spinner coughed up:
>> Tim Tyler wrote:
>>> In comp.lang.java.advocacy Super Spinner <email***@***.com>
>>> wrote or quoted:
>>>
>>> [Eclipse plugins]
>>>
>>>> I'd say that anyone that came up with an extension wouldn't be able
>>>> to make money because an OSS group would make a knock-off and give
>>>> it away for free.
>>>
>>> Your argument apparently suggests that nobody can make money selling
>>> software. I think history has proven that that is not the case.
>>
>> I think that one can make money by selling software only if the
>> software is "complex", where "complex" means "too complex to be
>> satisfactorily knocked off by OSS". And the set of "complex" sofware
>> becomes smaller and smaller, as OSS commodotizes more and more
>> markets. I used to think that something like Excel was sufficiently
>> complex to be safe from OSS, but I now know that within the next 5
>> years the spreadsheet market will be fully commodotized and therefore
>> not profitable. The same goes for all "office"-type apps. The same
>> goes for Photoshop and the like.
>>
>> The only software that I can see being safe from commodotization is
>> software that requires special domain knowledge, knowledge that devs
>> themselves do not possess and aren't likely to obtain in a competent
>> manner. Something like tax preparation software; this requires expert
>> knowledge of the tax laws and accountants that have such knowledge
>> aren't foolish enough to work for free like software devs appear to be
>> eager to do. So I can't see OSS "winning" in that space (yes, there
>> are OSS tax preparation packages, but the vast majority won't trust
>> that the devs understand the tax laws enough to trust those packages).
>>
>> Now, as for IDE extensions, sorry, there's no way that those are out
>> of the reach of OSS commodotization. Any extension would be knocked
>> off within a year, so the developers of the original would only have
>> one year to recoup the initial investment of resources and I don't see
>> anyone bothering to try. So nearly all future IDE extensions will
>> have to come from OSS from the get-go.
>>
>> A lot of OSS starts life as poor man's versions of commercial software
>> and gradually improves, but as commercial software is killed off, new
>> software inventions will have to come from OSS itself.
>>
>> As for individual programmers, they'll have to make money by working
>> on in-house stuff or custom solutions for a contractor, because it'll
>> be quite difficult to make money selling software to the general
>> public since OSS competition will make such an effort prohibitive.
>
> I have said for a lonnng time that if you write free software, you are
> only
> making it more difficult for other software engineers to earn a living. I
> don't mean small little utilities, like OE_QuoteFix and the like. But
> creating entirely free large scale applications doesn't make you a hero,
> it makes you a villain.
>
There's an easy solution to this. All the "for money" people have to do is
WRITE BETTER software...
I can't believe that projects like Eclipse are doing so well, simply because
they are OSS. It's because they are better...
--
******************************************************************************
Registered Linux User Number 185956
FSF Associate Member number 2340 since 05/20/2004
Join me in chat at #linux-users on irc.freenode.net
Buy an Xbox for $149.00, run linux on it and Microsoft loses $150.00!
7:42pm up 10 days, 4:15, 1 user, load average: 0.05, 0.07, 0.03
- 9
- Hibernate and Eclipse -- where to start?Hi folks,
This began as a thread in comp.lang.java.programmer, but the focus has
really moved toward db stuff, so I repost bits here. For the full
thread, see "searching for yoda - a developer's tale" at:
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_frm/thread/aa12c688b702cc72/f769b8aebe720db5?_done=%2Fgroup%2Fcomp.lang.java.programmer%2Fthreads%3Fstart%3D0%26order%3Drecent%26&_doneTitle=Back&&d#f769b8aebe720db5
[...] how to fit Hibernate into Eclipse. Again, my problem statement
is that I naturally work with objects and object graphs and would
prefer to spend most of my development effort in this domain. I would
like as much as possible to have mapping and schema handled by the
tool. It *seems* to me that the "natural" mode for Hibernate is to
start with the mapping and use the tools to generate Java and schema.
This is still better than starting with a relational model.
The learning required for these technologies is what I'm confused
about. What exactly do I need to learn? I have a couple of Hibernate
books (the "in Action" is one of them and is, so far, quite good). The
API seems reasonable and not too intimidating. If I were still a
vi/JDBC coder, I would simply add Hibernate API as a tool and
incrementally move forward. But, now that I'm a full-fledged Eclipse
user and committed to focusing on the object model, I'd like to (1)
integrate Hibernate into Eclipse (via any of the afore-mentioned
plug-ins or others), and (2) try to work from the object side of ORM.
Online docs for the plug-ins to solve (1) seem weak. It's hard to tell
which plug-in does what, and what the advantages/disadvantages of each
might be. (2) seems to imply, from my reading, a need for XDoclet or
some other Attribute-Oriented solution to bury the necessary hibernate
tags into the code. Once again, the docs I've found seem weak. More to
the point, as I've mentioned, each new link leads to five others and
their associated technology requirements...It just gets out of hand
quickly. My hope is for someone here to point the way through the fog
and say "here's how to integrate Hibernate" or perhaps "don't bother
integrating Hibernate, use this basic config file and modify as
needed", etc.
Any guidance would be greatly appreciated.
-don.
- 10
- FW: FreeBSD Upgrade bountycastle-1.16_1 to version 1.25Hi there,
I've emailed the maintainer about this and haven't received a
response in a weeks time. Could someone have a look at this?
Kind regards,
Manfred N. Riem
email***@***.com
http://www.manorrock.org/
-----Original Message-----
From: Manfred N. Riem [mailto:email***@***.com]
Sent: Friday, December 10, 2004 12:07 AM
To: 'email***@***.com'
Cc: 'email***@***.com'
Subject: [FreeBSD Port] Upgrade bountycastle-1.16_1 to version 1.25
Hi there,
A kind request to upgrade bountycastle-1.16 to version 1.25. If you need any
help in doing so, please let me know!
Kind regards,
Manfred N. Riem
email***@***.com
http://www.manorrock.org/
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
- 11
- Sending XML as a String through a web service (Tomcat/AXIS)?Hi, I have a web service written with Tomcat/AXIS. One of my
methods receives a String. Is it possible to send a String of
XML through this method? Will the XML tags confuse the
underlying web service system? Or will the XML be "escaped"
(with the <, > characters rewritten somehow)?
Thanks.
- 12
- Java Application Programmer for Oracle/Win Envir
Title: Java Application Programmer for Oracle/Win Envir.
Skills: Java Coder/Application Programmer (Web-Based Apps), SQL,
Oracle 8i or 9i, STRUTS
Trinity Consultancy Services is seeking applications from qualified
and experienced software engineers with above skills for various
requirements with their Clients.
Job description:
Java Coder/Application Programmer
We are seeking a Java developer to code applications and code Java
Classes from scratch to help in the development of an nth-tier web
application using Java language and associated technologies, in an
Oracle 8i/9i and Windows environment.
Duties and Responsibilities:
* This position requires a strong Java Application coder (3 years).
Ability to code applications from scratch by writing basic Java code
plus the ability to compile Java Applications using Java Servlets,
Applets, JSP's and JavaBeans. Must be able to create JavaBeans from
scratch. Should be able to track down particular Java code lines,
Scripts, JSPs, Beans, Servlets or Applets.
Required Experience:
* At least 3 years hands-on paid software development experience in
design and coding of Web applications.
* At least 3 years in Java and Object-Oriented software development.
* Experienced in Windows Dev.
* Experienced in large-scale, enterprise systems implementation with
through understanding of system development methodology.
* Must have STRUTS experience.
Required Skills:
* Strong computer programming skills in Java coding of Java Classes
and OO Design.
* Strong programming skills in programming with SQL and Oracle 8i/9i
Database.
* Strong programming skills in J2EE technologies, such as JSP, Java
Servlet, Javabean, EJB, JNDI, MVC, and JDBC API.
* Must have STRUTS experience.
* Good working skills in using Http, SSL, JDBC, RMI, XML, JMS.
* Good working skills in using Windows OS (XP, NT, 2000).
* Good interpersonal and communications skills.
Education:
Bachelor degree, CS or equivalent required.
Trinity Consultancy Services is a leading source of Information
Technology, Engineering and Management Experts that corporations of
all sizes turn to, from Global 2000 corporations to mid-sized and
small organizations nationwide. With the commitment to excellence, is
subtly managed to find, recruit, screen, submit and effectively
organize a technical workforce anywhere in the United States for
various Technical needs of corporation irrespective of its size.
Trinity Consultancy Services is one of its unique kind of the leading
information technology consulting services, and business process
outsourcing organizations committed for excellence.
Trinity provides business consulting, systems integration, application
development, staffing services and managed services to Global 2000
Corporations, medium-sized businesses, and government organizations
throughout the United States.
Trinity can mobilize the right resources, skills and technologies to
enable our clients to reach their dreams by enhanced performance. With
deep industry and business process expertise and broad global
resources, Trinity Consultancy Services is committed for excellence.
Please contact our Human Resource Manager Ms. Ann and send your
detailed Resume with your work authorization status, current salary
and expectations.
Mention the position you are applying in the subject line.
Email: email***@***.com
www.trinityconsultancy.com
- 13
- Interrupt on Java thread..I have two threads, one reading from stdin and writing to a socket
(requestThread),
one reading from a socket and writing to stdout (responseThread).
When the response thread gets a msg from server that an error occurs, it
closes the socket and calls interrupt() for it's thread group before
exiting.
But requestThread never seems to get the interrupt.
It is blocked(?) on a readLine() from the BufferedReader omn stdin.
What am I doing wrong?
- 14
- show a form from anotherPlease bear with me as I am pretty new to Java.
I am developing a Java Client application.
I have a frame with a button. When I click on the button, it hides the
current frame and opens another frame which is in another class.
When I click on a button on this second frame, I want to close it
(this.dispose) and show the first frame.
The question I have is:
From the second class frame, how do I reference the first frame?
I don't want to close the first frame as I want to keep any data entered.
TS
- 15
- what i do wrong???Hello All!
I think I have a mistake in my logical sequence of thoughts...
When I want to take influence on my JComponents (JTextField,
JCheckBox, etc.),
do I have to place a listener within the constructor???
My problem was the following. I wanted to get the values from my
different JTextFields an write them to any *.txt file. That did only
work, when I inserted a KeyListener who registered any changes in the
text fields. But my real problem is now, to get the values back from
the *.txt file an set them with setText(String) in the text fields.
This don't work.
I have seen in the NG, that there will be oft spoken about
revalidate() or repaint(), but that don't work anyway.
It does not matter, what I want to do - set a component enabled, or
disabled or what ever, I have to have an adequate listener within the
constructor so that the changes will be visible, isn't it that way???
For example:
public void any_method()
{
myTextfield.setEnabled(false);
}
// IT DON'T WORK
// ...but I don't know why. When I put it within the constructor, it
works...
I don't know what to to. I know it from MFC, there I could get
influence on my components in any method.
I don't know what I do wrong in Java.
(My program is an application with JFrame and SWING componets. I use
JTabbedPane and for each tab a Jpanel)
There must be a simple solution for my problem (I hope so).
Please led me out from this dead-end street.
Thanks in advance
Dariusz
|
|
|