 |
 |
Index ‹ java-programmer
|
- Previous
- 1
- environment variable for new version of j2eeDear Sir,
I have installed the current version of j2ee whose setup is provided on
your site. I installed it and tried to start the server. But server
didn't got started but it is giving a problem. I am attaching the
server log with this mail. Please provide me the right way to install
and the environment variables related to it to be set.
The server has already added a PATH D:\Sun\AppServer\bin
and as server is not running I added the
J2EE_HOME=D:\Sun\AppServer\bin
AND JAVA_HOME=D:\Program Files\Java\jdk1.5.0_05
Sudhir Kumar Sharma
- 3
- File Comparison in Java StrutsHow can i make a functionality of File Comparison using Java Struts???
And also is there any already built software like this in Struts?
Thank You.
- 3
- Getting a blank sql file from schemaexport taskI have the following in my ant script:
<schemaexport
properties="${basedir}/hbm2ddl.properties"
quiet="no"
text="yes"
drop="yes"
create="yes"
delimiter=";"
output="${targetdir}/schema-export.sql">
<fileset dir="${sourcedir}">
<include name="**/*.hbm.xml"/>
</fileset>
</schemaexport>
everything runs ok but i get a blank schema-export.sql file.
Also i tried placing log4j.properties in various locations, and it
keeps saying
[schemaexport] log4j:WARN No appenders could be found for logger
(org.hibernate.
cfg.Environment).
[schemaexport] log4j:WARN Please initialize the log4j system properly.
Anyone can help?
David
- 3
- What is joone?In article <4440bf8d$0$658$email***@***.com>,
"Chris Uppal" <email***@***.com> wrote:
> Patricia Shanahan wrote:
>
> > I like this approach because it relieves posters of any need to judge
> > whether a question is an attempt to cheat or not. [...] If they are
> > trying to cheat, they get lots of information that is useless to them.
>
> Which does rather mean that you've wasted your own time. The usual tension
> between generosity and scepticism...
Yes and no - even if the original poster is a cheater type, a good
question might apply to others as well.
> (And it also depends on your guessing correctly about whether the questioner
> /ought/ be asking for hints only -- if a working programmer looking for, say,
> a
> Skip List package, was referred only to the original paper (very readable,
> btw), and given a couple of implementation hints, then they would be
> justifiably disappointed.)
Also true, but if they are such, they will come back to the well if they
get good, but insufficient, information.
Scott
--
Scott Ellsworth
email***@***.com
Java and database consulting for the life sciences
- 4
- Jasper Reports BIDI languages (+ Hebrew) ProblemHi,
I'm trying to generate a report with Hebrew fonts in it.
When running it with iReport tool, everything works great, but when
running the report from a java code, I get an error message indicating
that the desired pdf font is not found....
I can't find the FontMap for Jasper therefore I can't even try to add
the desired font...
I know it is possible to use jasper reports with Hebrew, but for some
reason I still did not find a way to do it...
PLS. H E L P . . . .
- 4
- Storing a sound as an objectHi,
I'd like to load a sound file, store the sound as an object, and then
play it back at some later time. What are the classes appropriate
for that scheme? I have a lot of experience programming Java, aside
from audio, so really all I need is a pointer to the right approach,
and I think I can figure out the rest.
Thanks for your help. I found a lot of stuff about Java audio
programming,
but I didn't see (or couldn't recognize) a solution to this problem.
Robert Dodier
- 4
- HTTP/ Servlet/URL/ GET/ POST / HELP!!!!I have a small problem,
I am sending a few parameters to a company.
URL url = new URL("http://www.some.com/where?usr=name&password=pass&msg=ello");
now to connect to the url i simply open a connection:
url.openStream();
This sends my parameters( usr, password , msg), this works fine.
Thing is that the person i am sending these parameters to is sending
back parameters, namely; status_code and status_description
How can i get my hands on these parameters
I am doing this in a servlet
Thanks in advance,
Cormac
- 11
- Vertical JTabbed PanesDoes anyone know how to make the tabs of a JTabbedPane appear vertically? I
can get them onto the side by sett the tab placement to LEFT, but they are
still appearing horizontally.
Thanks,
Brandon
- 12
- How many client sockets bind to a ServerSocket ?Hi,
I'm Hee-Chul Moon from South Korea.
I am developing multi-file(about 100~10000 files) sending/receiving
system in Java.
I wonder how many client sockets can bind to a ServerSocket.
In my architect, a Server daemon can listen to several ports. However,
the port resource is so expensive that I want to optimize the number of
port opened.
please, let me know the general knowledge or the method to decide how
many workers are allowed to bind.
- 12
- Comparing Dates in JSPI'm fairly new to this so please excuse my ignorance.
What I'm trying to do is compare a date coming from a html form to the
current date and setting a limit on that date to only allow a date that
is two months old or newer.
This is my code:
today=2005-05-17
travel=2005-02-17
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Date today = sdf.parse(to_date);
Date travel = sdf.parse(tr_date);
//this is where I expect to get an int that represents how many days
apart these dates are.
//and this is where I get errors when compiling, without this line I
get no errors
int number_of_days = sdf.compareTo(today travel);
I can't even compile this with the last line of code(compareTo),
however I can without that line.
I'm getting ')' expected
Can anyone tell me what I'm doing wrong?
- 12
- printing jTableHello all and thanks in advance.
I am trying to print a jTable, it seems there is a simple command
JTable.print(), if my table is called jTable1 then
jTable1.print(); should do it.
compiler does not agree and says cannot resolve symbol method. I have import
javax.swing.table.*; which should be sufficient to provide this method. No
doubt there is something terribly complicated that I am missing.
Cheers,
Jacques
- 14
- Big job? Contractors?I may be supervising a big job later this year and wanted to get some
information from some of the contract programmers on the group. I need
to know what contract programmers are charging these days? I don't
think that the programmers would need to relocate but would probably
need to travel to one location for meetings once a month or so. How do
people charge for travel time? What sorts of skill sets should I expect
a contract programmer to have and how would that affect his/her hourly rate?
The people I'm talking to think this is going to be a pretty big job
with somewhere around two to four man years design and programming.
They want it done in Java to allow for possible hardware and operating
system changes both before and after installation. I've done a lot of
work for them on smaller jobs and they've been really happy with the
quick development time using Java.
I would appreciate any comments or suggestions. Feel free to email
direct if you like (replace the nospam with knute in the email address).
--
Knute Johnson
email s/nospam/knute/
Molon labe...
- 15
- Error with the VMRecently I did some registry cleaning and fixing and apparently i screwed
the java section so I disintalled the Java SDK and installed it again hoping
the installer could fix everything. But no way, I get this error anytime I
try o run the java VM.
Does anybody know how I can fix the registry? (I am not willing to reinstall
the entire OS...
Thanks
CZ
Microsoft(R) Windows DOS
(C)Copyright Microsoft Corp 1990-2001.
C:\java
Error opening registry key 'Software\JavaSoft\Java Runtime Environment\1.4'
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.
- 15
- RMI delaydarko wrote:
> Hi 2 everyone :))
>
> I made a RMI test server and client,
> and on local computer it works really great.
> But, when i am connecting through the remote computer,
> i have time delay of about 23 seconds... Every time...
>
> Whats going up ? From where is that 23 seconds delay?
> Even if computers are connected to their own network,
> time delay is 23 sec ?
>
> How can i reduce that delay ?
>
> Thanx
>
> Darko Nikolic
Those numbers sound suspiciously like a DNS timeout. Do the
machines know about each other? That is, do they each have
DNS entries or entries in each others host files?
Even if the originating machine uses an IP address rather
than a name, the destination could be attempting a reverse
DNS lookup, IP to name. It sure sounds like your network
configuration, however.
- 16
- applet and offline stateHi,
i have java applet that even microsoft internet explorer is in offline
state, the applet (that runs in internet explorer window) can still connect
to remote machines.
is this by design?
TIA, z.
|
| Author |
Message |
no

|
Posted: 2004-6-27 0:34:00 |
Top |
java-programmer, Eclipse 3.0 released
Eclipse is the only IDE in history to give Microsoft Visual Studio
a run for its money.
http://www.eclipse.org
|
| |
|
| |
 |
David Ashe

|
Posted: 2004-6-27 20:55:00 |
Top |
java-programmer >> Eclipse 3.0 released
<email***@***.com> wrote in message news:email***@***.com...
> Eclipse is the only IDE in history to give Microsoft Visual Studio
> a run for its money.
> http://www.eclipse.org
>
Its nice, seems faster than the previous release candidate and bugs such as
xml files not being viewable have been fixed.
if VS was chalk and Eclipse was cheese, i prefer to eat cheese.. i've been
from jdeveloper, to jbuilder, back to textpad now eclipse - now here to stay
(textpad is second-best though and is faster at loading the screen).
Has anyone tried using eclipse for languages other than java?
|
| |
|
| |
 |
Tim Tyler

|
Posted: 2004-6-28 0:01:00 |
Top |
java-programmer >> Eclipse 3.0 released
David Ashe <email***@***.com> wrote or quoted:
> Has anyone tried using eclipse for languages other than java?
I've usd it for writing PHP/Javascript/DHTML projects in.
It worked in a passable fashion.
--
__________
|im |yler http://timtyler.org/ email***@***.com Remove lock to reply.
|
| |
|
| |
 |
Peter Ammon

|
Posted: 2004-6-28 7:05:00 |
Top |
java-programmer >> Eclipse 3.0 released
David Ashe wrote:
> <email***@***.com> wrote in message news:email***@***.com...
>
>>Eclipse is the only IDE in history to give Microsoft Visual Studio
>>a run for its money.
>> http://www.eclipse.org
>>
>
>
> Its nice, seems faster than the previous release candidate and bugs such as
> xml files not being viewable have been fixed.
>
> if VS was chalk and Eclipse was cheese, i prefer to eat cheese.. i've been
> from jdeveloper, to jbuilder, back to textpad now eclipse - now here to stay
> (textpad is second-best though and is faster at loading the screen).
>
> Has anyone tried using eclipse for languages other than java?
>
>
I use it for C# development (I develop Java on my Mac). It crashed a
lot, but it beats using the command line. I hope 3.0 is more stable.
--
Pull out a splinter to reply.
|
| |
|
| |
 |
sarge_chris

|
Posted: 2004-6-28 19:15:00 |
Top |
java-programmer >> Eclipse 3.0 released
> i've been
> from jdeveloper, to jbuilder, back to textpad now eclipse - now here to stay
> (textpad is second-best though and is faster at loading the screen).
Same story here.
Eclipse is the first IDE I can remember using that doesn't frequently
make me want to scream and go on a jihad against the developers.
- sarge
|
| |
|
| |
 |
nkjsat2

|
Posted: 2004-7-3 18:56:00 |
Top |
java-programmer >> Eclipse 3.0 released
eclipse 3.0 released
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
|
| |
|
| |
 |
James D Carroll

|
Posted: 2004-7-5 11:41:00 |
Top |
java-programmer >> Eclipse 3.0 released
Considering that Eclipse is free, I'm not sure that's saying much.
Don't get me wrong. I think Eclipse is a great dev tool, but I still can't
seem to find how to create and manage any RDBMS from within the IDE. I've
been able to do that since VB 5.
Remember that one of VS's strength's is its integration with MS products.
Now, one man's integration may be another man's lockin. But MS VS .Net is
years ahead of Eclipse. And it always will be because while VS only has to
be a good MS dev tool, Eclipse will always be forced to try to all things to
all people.
<email***@***.com> wrote in message news:email***@***.com...
> Eclipse is the only IDE in history to give Microsoft Visual Studio
> a run for its money.
> http://www.eclipse.org
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.714 / Virus Database: 470 - Release Date: 7/2/2004
|
| |
|
| |
 |
Rob S. Pierre

|
Posted: 2004-7-5 13:06:00 |
Top |
java-programmer >> Eclipse 3.0 released
"James D Carroll" <email***@***.com> wrote:
> Considering that Eclipse is free, I'm not sure that's saying much.
>
> Don't get me wrong. I think Eclipse is a great dev tool, but I still
can't
> seem to find how to create and manage any RDBMS from within the IDE. I've
> been able to do that since VB 5.
You can't manage a RDBMS from within VB5/6, Mr. Carroll!
You need Access or SqlServer for managing a database.
Database-support for Eclipse is soon to come.
IBM is giving away big parts of its own commercial WSAD-Eclipse-version
to the Eclipse-project. This will include a database-management-tool,
XML- and WSDL-editors and much more.
> Remember that one of VS's strength's is its integration with MS products.
Eclipse can do that too. You can integrate every ActiveX-component
to the Eclipse-workbench if running on Windows.
> Now, one man's integration may be another man's lockin. But MS VS .Net is
> years ahead of Eclipse.
LOL.
Good joke. VS.NET sucks in almost any discipline compared to
a modern IDE like IDEA or Eclipse.
And there is a reason for that : Microsoft lacks competition.
Competition is the name of the game. Competition drives technical progress.
Monopolies are killing technical progress. Microsoft-users should be happy
if a competitors for VS.NET would exist. Borland is a small niche-player in
the market and cannot drive technical progress.
There is lot of competition in Java-world.
> And it always will be because while VS only has to
> be a good MS dev tool, Eclipse will always be force to try to all things
to
> all people.
The Eclipse-platform can do almost everything. It is not only a fantastic
IDE-platform but a rich-client-platform too. Can you use VS.NET as
rich-client-platform too?
SAP's development-tools are based on Eclipse. Same for Novell.
And I can tell you that lots of international companies will do the
same. Tell me one only international company that uses VS.NET
for integrating their own development-tools. VS.NET has an
old-fashioned stone-aged plugin-system based on AcrtiveX,
is closed-source and written in unmanaged code say C++.
You lost.
|
| |
|
| |
 |
Tor Iver Wilhelmsen

|
Posted: 2004-7-5 14:46:00 |
Top |
java-programmer >> Eclipse 3.0 released
"James D Carroll" <email***@***.com> writes:
> Now, one man's integration may be another man's lockin. But MS VS .Net is
> years ahead of Eclipse. And it always will be because while VS only has to
> be a good MS dev tool, Eclipse will always be forced to try to all things to
> all people.
But Eclipse has several developers making it all things to all people.
It can be extended or modified by anyone who learns the necessary
APIs.
Microsoft has in practice exactly one competitor - Borland - which it
doesn't feel very threatened by. Therefore Visual Studio has no
incentive to improve beyond what Microsoft feels developers need,
presumably still keeping "secrets" to themselves in order to have a
competitive advantage in any application field they choose to enter.
|
| |
|
| |
 |
poppymanor-listmonkey

|
Posted: 2004-7-16 10:15:00 |
Top |
java-programmer >> Eclipse 3.0 released
Thank you for setting Santa's elf straight. But there's one thing you
left out: Eclipse is a platform that is truly extensible as no other
tool has ever been before. That's why Mickey and its elves are about
to find out what real competition looks like. I predict that Eclipse
will pave everything else to a pancake in the next 12 months....
"Rob S. Pierre" <email***@***.com> wrote in message news:<ccanoc$eof$04$email***@***.com>...
> "James D Carroll" <email***@***.com> wrote:
>
> > Considering that Eclipse is free, I'm not sure that's saying much.
> >
> > Don't get me wrong. I think Eclipse is a great dev tool, but I still
> can't
> > seem to find how to create and manage any RDBMS from within the IDE. I've
> > been able to do that since VB 5.
>
> You can't manage a RDBMS from within VB5/6, Mr. Carroll!
> You need Access or SqlServer for managing a database.
>
> Database-support for Eclipse is soon to come.
> IBM is giving away big parts of its own commercial WSAD-Eclipse-version
> to the Eclipse-project. This will include a database-management-tool,
> XML- and WSDL-editors and much more.
>
> > Remember that one of VS's strength's is its integration with MS products.
>
> Eclipse can do that too. You can integrate every ActiveX-component
> to the Eclipse-workbench if running on Windows.
>
> > Now, one man's integration may be another man's lockin. But MS VS .Net is
> > years ahead of Eclipse.
>
> LOL.
> Good joke. VS.NET sucks in almost any discipline compared to
> a modern IDE like IDEA or Eclipse.
>
> And there is a reason for that : Microsoft lacks competition.
>
> Competition is the name of the game. Competition drives technical progress.
> Monopolies are killing technical progress. Microsoft-users should be happy
> if a competitors for VS.NET would exist. Borland is a small niche-player in
> the market and cannot drive technical progress.
>
> There is lot of competition in Java-world.
>
> > And it always will be because while VS only has to
> > be a good MS dev tool, Eclipse will always be force to try to all things
> to
> > all people.
>
> The Eclipse-platform can do almost everything. It is not only a fantastic
> IDE-platform but a rich-client-platform too. Can you use VS.NET as
> rich-client-platform too?
>
> SAP's development-tools are based on Eclipse. Same for Novell.
> And I can tell you that lots of international companies will do the
> same. Tell me one only international company that uses VS.NET
> for integrating their own development-tools. VS.NET has an
> old-fashioned stone-aged plugin-system based on AcrtiveX,
> is closed-source and written in unmanaged code say C++.
>
> You lost.
|
| |
|
| |
 |
altkey

|
Posted: 2004-7-21 22:30:00 |
Top |
java-programmer >> Eclipse 3.0 released
Rob S. Pierre wrote:
>
> "James D Carroll" <email***@***.com> wrote:
>
>> Considering that Eclipse is free, I'm not sure that's saying much.
>>
>> Don't get me wrong. I think Eclipse is a great dev tool, but I still
> can't
>> seem to find how to create and manage any RDBMS from within the IDE. I've
>> been able to do that since VB 5.
>
> You can't manage a RDBMS from within VB5/6, Mr. Carroll!
> You need Access or SqlServer for managing a database.
>
ummm ... VB 4,5,6 and .NET all have RDBMS management through MSDE or Access
or MS SQL or other ODBC compliant RDBMS. and "duh!" what's so surprising
about needing to have a database to manage if you intend to manage it with
VB? Seems kind of obvious that VB is not a RDBMS itself. I reckon you just
missed the point in your haste to type "you lost" at the end of your
message.
> Database-support for Eclipse is soon to come.
> IBM is giving away big parts of its own commercial WSAD-Eclipse-version
> to the Eclipse-project. This will include a database-management-tool,
> XML- and WSDL-editors and much more.
>
>> Remember that one of VS's strength's is its integration with MS products.
>
> Eclipse can do that too. You can integrate every ActiveX-component
> to the Eclipse-workbench if running on Windows.
>
It's nice that eclipse will allow you to use com and com+ objects. It may
even let you write them if you use a C# plugin. I like eclipse for Java
development, but it is not in the same league as VS.NET when it comes to
support for MS operating systems, components, and the .NET framework. Which
is the point the guy you replied to was making.
>> Now, one man's integration may be another man's lockin. But MS VS .Net is
>> years ahead of Eclipse.
>
> LOL.
> Good joke. VS.NET sucks in almost any discipline compared to
> a modern IDE like IDEA or Eclipse.
>
VS.NET is a modern IDE, but if you want religious wars over MS (evil) and
non-MS (good) then you're heading down the right path.
Borland is a small player - even in the Java world - because its products
(especially its 'enterprise' products) are expensive - in the case of
jBuilder it is slow too.
MS did have a Java offering VJ++ (I didn't like it much, and the inclusion
of MS specific keywords and APIs did make it less useful for general Java
development - unless you carefully avoided the MS extensions) and now they
have J# (which i haven't really bothered to look at). But now the Java
market is dominated by free IDEs from a few major vendors - Eclipse from
IBM, Netbeans from Sun, Jdeveloper from Oracle, and one from BEA. There are
some commercial Java IDEs, but i believe they are chiefly purchased by
corporate customers who either have a history of using them or who managed
to get a partnership with their supplier (borland etc).
> And there is a reason for that : Microsoft lacks competition.
>
> Competition is the name of the game. Competition drives technical
> progress. Monopolies are killing technical progress. Microsoft-users
> should be happy if a competitors for VS.NET would exist. Borland is a
> small niche-player in the market and cannot drive technical progress.
>
> There is lot of competition in Java-world.
>
the rant above (the one on competition) is worthy of a religious war.
>> And it always will be because while VS only has to
>> be a good MS dev tool, Eclipse will always be force to try to all things
> to
>> all people.
>
> The Eclipse-platform can do almost everything. It is not only a fantastic
> IDE-platform but a rich-client-platform too. Can you use VS.NET as
> rich-client-platform too?
>
> SAP's development-tools are based on Eclipse. Same for Novell.
> And I can tell you that lots of international companies will do the
> same. Tell me one only international company that uses VS.NET
> for integrating their own development-tools. VS.NET has an
> old-fashioned stone-aged plugin-system based on AcrtiveX,
> is closed-source and written in unmanaged code say C++.
>
ActiveX is stone aged? It may be a little bit dated now but it is perfectly
serviceable. The plugin architecture for eclipse is different from activex
but not 'better'.
> You lost.
|
| |
|
| |
 |
Byron Miller

|
Posted: 2004-7-21 22:35:00 |
Top |
java-programmer >> Eclipse 3.0 released
"James D Carroll" <email***@***.com> wrote in message
news:email***@***.com...
> Considering that Eclipse is free, I'm not sure that's saying much.
>
> Don't get me wrong. I think Eclipse is a great dev tool, but I still
> can't
> seem to find how to create and manage any RDBMS from within the IDE. I've
> been able to do that since VB 5.
>
> Remember that one of VS's strength's is its integration with MS products.
> Now, one man's integration may be another man's lockin. But MS VS .Net is
> years ahead of Eclipse. And it always will be because while VS only has to
> be a good MS dev tool, Eclipse will always be forced to try to all things
> to
> all people.
Check out the plethora of plugins available to do what you want in Eclipse
http://www.eclipseplugincentral.com/index.php
-byron
|
| |
|
| |
 |
John Bailo

|
Posted: 2004-10-30 2:58:00 |
Top |
java-programmer >> Eclipse 3.0 released
email***@***.com wrote:
> Eclipse is the only IDE in history to give Microsoft Visual Studio
> a run for its money.
> http://www.eclipse.org
>
I downloaded and installed the Platform SDK 3.0.1 version for windows,
and also for Linux, but I'm a little puzzled. I also installed the JDK 1.4
I created an empty project, and added a HelloWorld.java file.
Now I want to compile and run it.
When I click on Project, the compile buttons are all greyed out.
There is no feature in the RunAs... menu.
Am I supposed to install something else, like a PlugIn, to be able to do
java compiling ?
--
http://antimeme.texeme.com
|
| |
|
| |
 |
John Bailo

|
Posted: 2004-10-30 10:38:00 |
Top |
java-programmer >> Eclipse 3.0 released
John Bailo wrote:
> Am I supposed to install something else, like a PlugIn, to be able to do
> java compiling ?
ok, i dig.
i need the JDT.
--
http://www.texeme.com
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Turning off Eclipse XML editor's comment autocompleteWhen I open the XML file and open the comment (by typing <!--) it
automatically adds a closing tag: -->
This is fine until you really want to comment something already
existing. For example:
<tag1>
<tag2>
</tag2>
</tag1>
will be turned into:
<!-- -->tag1>
<tag2>
</tag2>
</tag1>
by typing !-- after the first >. Any way to disable this? Ctrl+space
is nice, but I don't like this automatic behavior.
- 2
- Runtime.getRuntime().exec PROBLEMHi.
I'm trying to print a document using the acrord32 or gsprint command
directly from my java program named "cde".
The problem is that: If i run multiple instance of my program "cde",
sometimes the adobe or gs print only one document and not the other
especially if I run em both in a short temporal distance.
To solve the problem I'm trying to know if acrord32 or gs are already
printing a document and waiting until there is no document.
Is there a way to know that?? ( using J2EE )
Is there another way to solve the problem??
Thanks in advance
- 3
- Finding available driversCan anyone suggest a methodology for finding out programatically what
JDBC drivers may be on a machine?
Here's what I intend to attempt:
Get the paths for ext, endorsed, library and classpath
properties/values. For each path found, attempt to load each 'class'
file and then use the driver manager to see if a new driver was
registered or examine the class for 'acceptsURL' or a similar signature
method.
Is there a more straight forward(easier) way?
- 4
- How do I open a Website/HTML file from an Application in a Browser (IE is fine)Hey guys,
very basic question:
I want to push a button, and open an HTML file in Internet Explorer (or
any browser, there's no need for very compatible code, since the
software will only be used a couple of times on a windows machine).
Important: I do NOT want to have the HTML file viewed with java or
JEditPane or whatever..
Thank you!
Flo.
- 5
- Online Chat: Java BluePrints for Service Oriented ArchitectureThe Java BluePrints Program provides best
practices, guidelines, and sample applications
for developing enterprise Java applications and
Web services. Learn more about Java BluePrints
for SOA and get questions answered in this online
chat with two key members of the Java BluePrints
team, Inderjeet Singh and Sean Brydon, and with
Enterprise Java architect, Sameer Tyagi.
Date: Tuesday, September 14, 2004
Time: 11:00 am-12PT2-3 ET
Join us: http://java.sun.com/developer/community/chat/index.html?ssobm=ng
- 6
- ClassCastException problem with 2D float array serializationHi, I get an "java.lang.ClassCastException: [[D" with the following
code:
FileOutputStream fout= new FileOutputStream("C:\\A.txt");
ObjectOutputStream out= new ObjectOutputStream(fout);
...
float[][] vocabArray = new float[voc_cnt][groupNum];
...
out.writeObject(vocabArray);
out.close();
...
float[][] vocabArray2 = new float[voc_cnt][groupNum];
FileInputStream fin5 = new FileInputStream("C:\\A.txt");
ObjectInputStream oin5 = new ObjectInputStream(fin5);
vocabArray2 = (float[][])(oin5.readObject()); //It gives error here
oin5.close();
Can anybody see any problem here? I would really appreciate any help.
- 7
- how to extend a byte[] array with a null byte?In article <email***@***.com>,
"Peter Duniho" <email***@***.com> wrote:
> On Thu, 17 Apr 2008 20:57:33 -0700, Lew <email***@***.com> wrote:
>
> > [...]
> > You use System.arraycopy(), as others have suggested, when you're using
> > a target array that you need to allocate outside the call.
>
> I understand that. But part of a well-designed API is discoverability. A
> natural place to look for that functionality is in the classes involved,
> as opposed to a general purpose utility class (especially considering that
> that utility class consists mostly of things related to the run-time
> environment, rather than management of data within a Java program).
>
> The arraycopy() method, to me, seems like an anomaly in the System class,
> whereas it would seem quite at home as a static method in either the Array
> or Arrays class.
>
> YMMV.
>
> Pete
The System and Runtime classes are an odd collection of things that
needed a home in the Java 1.0 days. That was back when Java was supposed
to be a compact, super efficient language for browsers and embedded
devices. (Yes, the flaws in that logic were visible back then too.)
--
Block Google's spam and enjoy Usenet again.
Reply with Google and I won't hear from you.
- 8
- SOAP errorI'm running Tomcat 3.2.4 with SOAP 2.2. I've deployed a small java
class.
The problem is that after invoking it's method i get a response with a
fault which says:
Unable to resolve target object: Class
org.apache.soap.server.http.ServerHTTPUtils can not access a member of
class samples.airport.DatabaseConnector with modifiers ""
I'm clueless as what to do, the samples that came with soap are
working, at least I've tested a few simple, like addressBook etc.
Any hint?
- 9
- About thread processingDear all,
I have an assignment which needs to establish some threads
to talk to each others. So far I have built a very simple server
which connected with different clients (using ServerSocket/Socket
classes). However, some client may initialize a command to talk
to other client thread.
Is there any available API which enables one thread to talk to other
thread directly?
I think a better way to do this is (1) the client requests the talk;
(2) pass the request to the server; and (3) the server communicate
with the other thread.
Please inspire me with available API and I'll explore further.
Thanks.
- 10
- "Message passing"?, and a GUI question.Hello all,
In OS/2 whenever I use an SQL database in a GUI program I use a separate
thread to collect data. This thread also preprares all the data
structures for a GUI widget that is about to display the data. Then,
when all preparations has been done, I would use WinSendMsg()
(synchronous) or WinPostMsg() (asynchronous) to let the main application
thread (where the GUI runs) know about the widget data. This means that
the GUI is "never" (never noticably) locked.
How would I do that in Java? AFAIK, it doesn't use message queues, at
least not visible, and in the same form that OS/2 and Windows uses.
This is what I know:
I can implement a thread using "Runnable"..
---------------------------
class GetMonthlyTable implements Runnable {
private Connection con;
Vector tableRows = new Vector();
GetMonthlyTable(Connection con) {
this.con = con;
}
public void run() {
Q = "SELECT ID,DATE,AMOUNT,DESCRIPTION FROM TRANSACTIONS";
...
ResultSet rs = stmt.executeQuery(Q);
while(rs.next())
{
// Add table row to Vector tableRows
}
}
}
---------------------------
That would ensure that I won't be holding up the GUI with my database
operations, now I need to get the tableRows reference to the GUI's main
thread (where I store a Vector referece which is used for all the JTable
data).
If I pass along a reference to JTable, I can easily set the rableRows
instance variable using a "set*()"-method. However, once this is done,
how do I "signal" (analogous to passing a message) to the main GUI
thread that it has new data, and the widget should be updated? AFAIK,
the GUI API:s aren't thread safe -- all GUI operations should be
performed on the GUI thread. ...or should that be: All GUI APIs are
executed on the main thread? (if so, how are asyncronous calls to the
GUI thread made?)
Also, could someone please explain what Swing is, or more specifically,
what it is not? As far as I can understand, Swing is "new" in the sense
that there is another GUI toolkit which was in Java 1.0, and that is
still a part of Java. How do I know which I am using? Are they entirely
separate (as in they can't be mixed?). I am using JTable, GridBagLayout,
JComboBox, et al. -- does that mean that automatically I'm using Swing?
--
Kind regards,
Jan Danielsson
Nobody loves a cynic
- 11
- Referring to packagesCan anyone explain how i can refer to another package that is at the
same 'level' in the directory structure as the one doing the
referring. i.e given the package structure: -
basedir
| |
package1 package2
how can i gain access to a class within package2 from within a source
file from package1 -- i only seem to b able to access classes within
packages/directories that are BELOW the package doing the referring.
In the context im thinking of i have a GUI package and a number of
DATA packages - i want the GUI classes to be able to access DATA
classes but also want DATA packages to refer to one another -- its not
essential that the classes are organized this way but seems like a
'common-sense' way of dividing up my classes to make them more
manageable.
cheers
P@
- 12
- maven 2 and xdocletHello
Has anybody got the combination of maven 2 and xdoclet working? It
worked fine in maven 1, but somehow I don't get it working under maven
2. If you got it working, plz tell me how.
TIA
- 13
- About java virtual dependencies and provides and the Java PolicyHello
On Sun, 2008-05-11 at 13:27 +0200, Eric Lavarde wrote:
> Hi,
>
> browsing through the repositories to check some Java stuff, I find quite
> some confusion around virtual packages:
I would also like to have this spelled out somewhere. Though policy's
requirement, for virtual packages to appear in the list of virtual
packages, is only a SHOULD, it would be good to have this in place.
3.6 Virtual Packages
[...]
All packages should use virtual package names where appropriate,
and arrange to create new ones if necessary. They should not use
virtual package names (except privately, amongst a cooperating
group of packages) unless they have been agreed upon and appear
in the list of virtual package names. (See also Virtual packages
- Provides, Section 7.4)
[...]
Like Eric, I am not sure what to depend on (right now I am
build-depending on "default-jdk-builddep" which I found somewhere in the
archive, and which is not really correct, since I require a java 5
compatible SDK.
Best regards
Ben
--
Please do not send any email to email***@***.com -- all email not
originating from the mailing list will be deleted. Use the reply to
address instead.
--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
- 14
- 15
- Sun Java spinoff petition.People should probably look at
http://www.petitiononline.com/spinjava/
It's a petition to make Sun spin off a java to it's own
company to among other things ensure the future of Java.
|
|
|