| ANNOUNCE: Ice 2.0 released |
|
 |
Index ‹ java-programmer
|
- Previous
- 1
- Make Java plugin SysTray icon visible ?I have a java plugin (for IntExp) browser which is currently for version 1.4.2_14b05
On some machines I noticed that the plugin shows an icon in the SysTray
on others not. How can I hide/unhide this Java plugin SysTray icon ?
Where are the files for this java plugin physically stored (in which directory) ?
Lars
- 1
- 1
- Instant dragging from JTreeHi NG,
I cannot drag an unselected element of a JTree. First I have to select
it, then I can drag it. Is there a way to implement that? I think I can
spare that extra click.
Best regards, Christoph
- 1
- Eclipse 3.08 problemEclipse show not problems, it means when I write code must every time
rebuild to view compiler errors.
How it fix?
- 2
- 2
- JDK 1.5.0_05 won't load applets from the Internet?I'm setting up a new PC with a brand-new installation of Windows XP and
Fedora Core 3 (each with all the latest updates).
I'm having trouble with the Java plug-in: it won't load any applets
from the Internet (from the local filesystem works fine). I'm behind a
SOCKS v4 proxy; the browsers and DNS are configures appropriately and
surfing the net works fine, using Mozilla and IE under Windows and
using Mozilla under Linux -- but trying to load a page with an applet
just displays the pretty coffee mug image where the applet should be,
and when I try to leave the page, the browser hangs, presumably because
the JVM is stuck trying to download the applet.
I tried reconfiguring the gateway to use plain NAT, so I could take the
proxy out of the picture, but this did not fix things.
I never had problems like these with JDK 1.4.2.*, but with 1.5.0_05, I
just can't get it to work at all. Web Start doesn't work either -- just
sits there "checking for latest version" indefinitely.
I have Java configured to use the browser's settings; configuring the
proxy settings manually makes no difference. (Of course when I use NAT
on the gateway, there is no proxy involved at all, but that does not
work either.)
N.B. The applets themselves do not appear to be the problem -- I tried
some really simple ones, including samples from the Java Tutorial;
nothing even gets pulled across the network.
I'm hoping someone can shed some light on this -- I'm stumped!
Thanks,
- Thomas
- 2
- Interested in ai project in java ??hi, anybody interested in long term artificial intelligence software
project to develop an intelligent bot for stock market trading in india
?, the project is to be implemented in java using the bea weblogic
application server platform on almost all paltforms
(windows/linux/solaris/bsd), with a capability of handling the trading
accounts of thousands of clients with their perferances. if u r
interested plz let me know. i will put all the project requirements and
tools and programming languages required for the project in my project
page at http://www.aistockbot.ravichoudhari.worldfreeweb.com after 22nd
jan 2k6. if u r interested then send me a mail at
email***@***.com.
- 4
- Reading data from a file using AntHi Everyone,
Im new to Ant and I am encountering some problems.
I have a text file which contains a value in there. I need that value
to be set into another file.
I tried using Javascript but Javascript does not support I/O for files.
Is there any command in Ant that can read a value from a text file (
eg. output.txt ) and then use that value to replace into another file (
eg. jsp ).
Thanks,
Marvin
- 6
- Corrupted JPEG: DataInput/OutputStreamHi!
I download a JPG and write it to disk; this is rather old code which
certainly worked. The only thing I'm aware of that changed is JDK 1.4 ->
1.5b2. The written file is corrupt:
URL u = new URL ("http://foo/bar.jpg");
DataInputStream in = new DataInputStream
(u.openConnection().getInputStream());
File f = new File (foo);
FileOutputStream fs = new FileOutputStream (f);
DataOutputStream out = new DataOutputStream (fs);
for (int b; (b = in.read ()) != -1;)
{
out.write (b);
}
in.close();
fs.close();
out.close();
What's wrong? And, can I repair the corrupt files?
- 6
- thread status jdk 1.3How can I know thread status with jdk 1.3?
It doesn't have thread.getStatus().
How can I do?
Thanks
Palmis
- 6
- type Map does not take parameters ?Hi all,
I got a strange error message from the java 1.5.0 compiler:
"type Map does not take parameters" which Map certainly does.
The complete code was this mini class:
import java.util.*;
class AAA {
public static void main(String[] args) {
Map<Integer, String> map = new HashMap<Integer,String>();
System.out.println(map);
}
}
NB, it does not compile with the original compiler, but compiles happily
within an Eclipse 3.1 environment.
And it does also compile with the original compiler when I change the
reference type from Map to HashMap.
How can this be?
Yours,
Bu.
- 6
- Java Developer - Oracle, UML, Spring, Hibernate -HOT HOT OPENINGSTitle: Java Developer - Oracle, UML, Spring, Hibernate
Company: Trinity Consultancy Services
Skills: Java Developer, Software Engineer, Java Programmer, Software
Developer, Software Programmer, Java Engineer, UML, Hibernate, Spring
- Java Developer, Software Engineer, Java Programmer, Software
Developer, Software Programmer, Java Engineer, UML, Hibernate, Spring
Trinity Consultancy Services is seeking applications from qualified
and experienced software engineers with above skills for various
requirements with their Clients.
Job description and Skills:
* Java Developer, Software Engineer, Java Programmer, Software
Developer, Software
* Programmer, Java Engineer, UML, Hibernate, Spring
* Java Developer- Oracle, UML, Spring, Hibernate
* 4+ years of Java experience
* Oracle expertise
* Knowledge of Spring and/or Hibernate and/or Tapestry
* UML experience
* Experience in creating database intensive applications from the
ground up
* Full life cycle software development
* Design and deliver complex web applications
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
- 6
- getting starting with ...... Java
I am newbie of sorts: I'm familiar with java to a some extent, but I have
never had the chance to use it. Which means, I'm not as comfortable with
it as I am with other languages (php,asp,python,c,perl,etc). What is the
best way to get comfortable? Is there any particular direction I should be
heading? I never read a book from start to end, unless it's a novel, so
with other programming languages I've learnt the fundamentals, and the
bits and pieces here and there as needed. Database connectivity, web
(server based) apps are of interest as most work I do is related to these.
Current projects include pulling stats from a database (Postgres,mysql) in
python and, a web credit card payment system in php. Im also maintaining
one of our "legacy" systems in perl.
I have lots of time, and I want use doing something productive in java,
that is my aim.
Directions will be helpfull....
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
- 13
- Anonymous inner Classes accessing final variables?Hi
When a write an inner class inside a method , it can access the
variables in the enclosing method if and only if they are final ...
Why is the compiler enforcing this ??
What might be the reason for java doing this ?? Is it that these Local
Variables will be cached for Inner class usage ??
Thanks a lot in advance!
- 15
- log4j - openning a new fileHi,
I need to open a new log file in a specific location in the code, how
can I do that?
Log file size and number of records are unknown so I cannot use this
information.
|
| Author |
Message |
Michi Henning

|
Posted: 2004-11-23 5:54:00 |
Top |
java-programmer, ANNOUNCE: Ice 2.0 released
Hi,
we've just released Ice 2.0 with quite a lot of new features:
- new language mappings for Visual Basic and Python
- a new light-weight and super-efficient firewall
- a streaming API that allows you to control the encoding and decoding of
objects in arbitrary formats (or the native Ice format)
- dynamic invocation and dispatch interfaces, so you can write generic
clients and server that do not require compile-time type knowledge
- new chapters in the documentation for the new features
- numerous other improvements and bug fixes
See http://www.zeroc.com/vbulletin/showthread.php?s=&threadid=987
for more info.
Cheers,
Michi.
|
| |
|
| |
 |
Tim Roberts

|
Posted: 2004-11-24 15:20:00 |
Top |
java-programmer >> ANNOUNCE: Ice 2.0 released
"Michi Henning" <email***@***.com> wrote:
>
>Hi,
>
>we've just released Ice 2.0 with quite a lot of new features:
I'm sure this is a wonderful thing, but your announcement gives absolutely
no clue as to what Ice is or what it is used for.
Please include an executive summary when you make an announcement like
this.
>- new language mappings for Visual Basic and Python
>
>- a new light-weight and super-efficient firewall
>
>- a streaming API that allows you to control the encoding and decoding of
> objects in arbitrary formats (or the native Ice format)
>
>- dynamic invocation and dispatch interfaces, so you can write generic
> clients and server that do not require compile-time type knowledge
>
>- new chapters in the documentation for the new features
>
>- numerous other improvements and bug fixes
>
>See http://www.zeroc.com/vbulletin/showthread.php?s=&threadid=987
>for more info.
--
- Tim Roberts, email***@***.com
Providenza & Boekelheide, Inc.
|
| |
|
| |
 |
Marc Laukien

|
Posted: 2004-11-24 21:07:00 |
Top |
java-programmer >> ANNOUNCE: Ice 2.0 released
> I'm sure this is a wonderful thing, but your announcement gives absolutely
> no clue as to what Ice is or what it is used for.
>
> Please include an executive summary when you make an announcement like
> this.
Sorry for the omission. Please see the summary below:
"The Internet Communications Engine (Ice) is a modern alternative to
object middleware such as CORBA?or COM/DCOM/COM+. Ice is easy to learn,
yet provides a powerful network infrastructure for demanding technical
applications. Ice shines where technologies such as SOAP or XML-RPC are
too slow, or do not provide sufficient scalability or security.
Ice is free software, available with full source, and released under the
terms of the GNU General Public License (GPL). Commercial licenses are
available for customers who wish to use Ice for closed-source software."
For more information, check out this paper:
http://www.zeroc.com/ieeeArticle.html
Cheers,
Marc
|
| |
|
| |
 |
Ville Vainio

|
Posted: 2004-11-24 21:42:00 |
Top |
java-programmer >> ANNOUNCE: Ice 2.0 released
>>>>> "Marc" == Marc Laukien <email***@***.com> writes:
Marc> Ice is free software, available with full source, and
Marc> released under the terms of the GNU General Public License
Marc> (GPL). Commercial licenses are available for customers who
Marc> wish to use Ice for closed-source software."
So, unlike with currently available Python CORBA implementations (and
implementations for other languages as well), you can't use ICE in a
closed source system without paying a fee. Just wanted to point this
out so that nobody got the wrong idea. This *is* a big deal with
middleware / library that would quite probably be adopted in
commercial systems where the managers will feel uneasy about giving up
the control of their "precious" source.
Too bad, I actually got mildly exited when I read about ICE in the
referenced website.
--
Ville Vainio http://tinyurl.com/2prnb
|
| |
|
| |
 |
Marc Laukien

|
Posted: 2004-11-24 22:00:00 |
Top |
java-programmer >> ANNOUNCE: Ice 2.0 released
Ville Vainio wrote:
>>>>>>"Marc" == Marc Laukien <email***@***.com> writes:
>
>
> Marc> Ice is free software, available with full source, and
> Marc> released under the terms of the GNU General Public License
> Marc> (GPL). Commercial licenses are available for customers who
> Marc> wish to use Ice for closed-source software."
>
> So, unlike with currently available Python CORBA implementations (and
> implementations for other languages as well), you can't use ICE in a
> closed source system without paying a fee. Just wanted to point this
> out so that nobody got the wrong idea. This *is* a big deal with
> middleware / library that would quite probably be adopted in
> commercial systems where the managers will feel uneasy about giving up
> the control of their "precious" source.
That is correct. I thought what I wrote about licensing above was
already clear enough, but if you have the need to clarify it even
further, that's of course fine :)
|
| |
|
| |
 |
Ville Vainio

|
Posted: 2004-11-25 2:03:00 |
Top |
java-programmer >> ANNOUNCE: Ice 2.0 released
>>>>> "Marc" == Marc Laukien <email***@***.com> writes:
Marc> That is correct. I thought what I wrote about licensing
Marc> above was already clear enough, but if you have the need to
Marc> clarify it even further, that's of course fine :)
It was more about emphasizing the fact than clarifying it - an
untrained eye might skim the post and miss the detail. I've seen all
too many complaints about people who are surprized about the issues
with GPL'd libraries (as opposed to GPL'd programs).
A part of it might have been about just venting my disappointment,
because, well, the project seemed interesting :-).
--
Ville Vainio http://tinyurl.com/2prnb
|
| |
|
| |
 |
mailto.anand.hariharan

|
Posted: 2004-11-30 22:34:00 |
Top |
java-programmer >> ANNOUNCE: Ice 2.0 released
Marc Laukien <email***@***.com> wrote in message news:<email***@***.com>...
> > I'm sure this is a wonderful thing, but your announcement gives absolutely
> > no clue as to what Ice is or what it is used for.
> >
> > Please include an executive summary when you make an announcement like
> > this.
>
> Sorry for the omission. Please see the summary below:
>
(...)
>
> Ice is free software, available with full source, and released under the
> terms of the GNU General Public License (GPL). Commercial licenses are
> available for customers who wish to use Ice for closed-source software."
>
Interesting to see this blend of GPL and an alternative for
closed-source software.
Not totally unrelated, I saw this in your web-site (Ice vs CORBA
page):
<QUOTE>
No "Design by Committee"
Ice was designed by a small group of dedicated and highly experienced
people.
</QUOTE>
Am interested to know, what "percentage" (*) of the code in your CVS
repository has been contributed by people other than the group
mentioned in the quote above? Obviously, you do not allow anonymous
CVS write access. Perhaps, one wishing to improve Ice (a freedom
granted by GPL) and who does not work for ZeroC has to mail his/her
improvements to your maintainers?
(*): Percentage is a very nebulous term, I know. For purposes of
answering the question, maybe you could resort to the
not-highly-meaningful number of LOC, and perhaps a word or two about
how Ice benefited from it.
- Anand
PS: Please feel free to set FU-Ts as appropriate.
|
| |
|
| |
 |
Marc Laukien

|
Posted: 2004-11-30 23:46:00 |
Top |
java-programmer >> ANNOUNCE: Ice 2.0 released
> Interesting to see this blend of GPL and an alternative for
> closed-source software.
>
> Not totally unrelated, I saw this in your web-site (Ice vs CORBA
> page):
> <QUOTE>
> No "Design by Committee"
> Ice was designed by a small group of dedicated and highly experienced
> people.
> </QUOTE>
>
> Am interested to know, what "percentage" (*) of the code in your CVS
> repository has been contributed by people other than the group
> mentioned in the quote above? Obviously, you do not allow anonymous
> CVS write access. Perhaps, one wishing to improve Ice (a freedom
> granted by GPL) and who does not work for ZeroC has to mail his/her
> improvements to your maintainers?
>
> (*): Percentage is a very nebulous term, I know. For purposes of
> answering the question, maybe you could resort to the
> not-highly-meaningful number of LOC, and perhaps a word or two about
> how Ice benefited from it.
100% of the Ice source code has been developed by ZeroC employees.
Note that this does of course not apply for third-party code that is
being used by Ice, such as BZIP2, Berkeley DB, OpenSSL, etc.
>
> - Anand
>
> PS: Please feel free to set FU-Ts as appropriate.
What are FU-Ts?
-- Marc
|
| |
|
| |
 |
mailto.anand.hariharan

|
Posted: 2004-12-1 3:23:00 |
Top |
java-programmer >> ANNOUNCE: Ice 2.0 released
Marc Laukien <email***@***.com> wrote in message news:<email***@***.com>...
> >
(...)
> > Am interested to know, what "percentage" (*) of the code in your CVS
> > repository has been contributed by people other than the group
> > mentioned in the quote above? Obviously, you do not allow anonymous
> > CVS write access. Perhaps, one wishing to improve Ice (a freedom
> > granted by GPL) and who does not work for ZeroC has to mail his/her
> > improvements to your maintainers?
> >
(...)
>
> 100% of the Ice source code has been developed by ZeroC employees.
>
> Note that this does of course not apply for third-party code that is
> being used by Ice, such as BZIP2, Berkeley DB, OpenSSL, etc.
>
Consider the *hypothetical* situation where an individual or a group
of people re-write large portions of Ice. This could enhance the
value of Ice (obviously to some, if not all), or this could conflict
with the ideologies of Ice (again, not in everyone's point of view).
How will ZeroC react to this?
I believe whichever road you take, ZeroC is going to find itself in
problems. If ZeroC merges the changes made by this/these person(s),
how can ZeroC now sell it under a commercial license, as closed source
(violation of GPL)? If you refuse to merge the changes, you have just
given them a strong impetus to fork. History shows XEmacs and EGCS as
two such examples.
Guess what I am primarily interested in finding out is rooted in what
I said earlier:
> > Interesting to see this blend of GPL and an alternative for
> > closed-source software.
What were the ideas behind going the GPL way? How did ZeroC plan on
benefiting from it? Were there any qualms within ZeroC in going GPL?
Note that I am not saying GPL and commercial software don't go
together (I do believe though that LGPL and commercial software don't
go together). I am well aware of Free software being "Free speech,
not free beer".
What if you did not provide Ice as a free download, but a price based
on your current licensing policy(*). However, the download would give
one the complete source, and the freedom to modify and redistribute it
(at whatever price so long as the complete source code with the GPL
notice is released).
(*): All of this is hypothetical. Am not making a business
proposition here.
You do not, because that would discourage Ice from becoming
ubiquitous, from paving way for becoming a potential de-facto
standard.
Then, why not simply advertise Ice as being commercial (with unlimited
free trial plus source code)? Doing so, would get you the extensive
peer review that you are currently benefitting from. What do you gain
by going GPL? The freedom to modify and/or redistribute is
(apparently) pretty restricted anyway.
> > PS: Please feel free to set FU-Ts as appropriate.
>
> What are FU-Ts?
>
"Follow-up To:". Most news clients will allow sending a post to
multiple groups, restricting any possible responses to certain groups
alone. A poster who is replying can over-ride it, of course.
sincerely,
- Anand
|
| |
|
| |
 |
Marc Laukien

|
Posted: 2004-12-1 4:45:00 |
Top |
java-programmer >> ANNOUNCE: Ice 2.0 released
> Consider the *hypothetical* situation where an individual or a group
> of people re-write large portions of Ice. This could enhance the
> value of Ice (obviously to some, if not all), or this could conflict
> with the ideologies of Ice (again, not in everyone's point of view).
> How will ZeroC react to this?
Everybody can enhance or modify Ice, we don't have any problems with
this whatsoever. The GPL explicitly allows you to do so. However, this
does not mean that we have to take over these changes or additions into
our Ice distribution. In many cases, this would also not be necessary,
as the most likely contribution would be in form of plug-ins or services.
As an aside, you are completely free to use any license, if you write
your own implementation of the Ice protocol or specification language.
Neither the protocol nor the specification language are patented. So
while our own implementation is available under GPL or a commercial
license only, you could write a new implementation under a license of
your choosing. We don't have any problems with this either. In fact, we
encourage it, otherwise we wouldn't have documented our protocol so
carefully.
>
> I believe whichever road you take, ZeroC is going to find itself in
> problems. If ZeroC merges the changes made by this/these person(s),
> how can ZeroC now sell it under a commercial license, as closed source
> (violation of GPL)? If you refuse to merge the changes, you have just
> given them a strong impetus to fork. History shows XEmacs and EGCS as
> two such examples.
I don't see any problems. If we merge a contribution into our Ice
distribution, then we need to reach an agreement with the contributor as
to how we can handle non-GPL licenses. If no agreement is reached, then
we cannot merge this contribution into our Ice distribution.
>
> Guess what I am primarily interested in finding out is rooted in what
> I said earlier:
>
>
>>>Interesting to see this blend of GPL and an alternative for
>>>closed-source software.
>
>
> What were the ideas behind going the GPL way? How did ZeroC plan on
> benefiting from it? Were there any qualms within ZeroC in going GPL?
The idea is simple: Ice should be free for open-source applications, but
if somebody wants to use Ice for a closed-source application, then we
want a fair share of the revenue. So far this works quite well :)
No, there were no qualms within ZeroC with using the GPL, we all pretty
much agreed from the start that this is a reasonable licensing model.
Note that we are not the only one who use such a dual-licensing scheme.
For example, if you want to use Berkeley DB (an excellent embedded
database) for a closed-source project, then you also have to buy a
commercial license. (They don't use GPL as their open-source license,
but something that is similar to the GPL.)
>
> Note that I am not saying GPL and commercial software don't go
> together (I do believe though that LGPL and commercial software don't
> go together). I am well aware of Free software being "Free speech,
> not free beer".
>
> What if you did not provide Ice as a free download, but a price based
> on your current licensing policy(*). However, the download would give
> one the complete source, and the freedom to modify and redistribute it
> (at whatever price so long as the complete source code with the GPL
> notice is released).
> (*): All of this is hypothetical. Am not making a business
> proposition here.
I'm not sure I understand what you are suggesting. You want us to charge
for a GPL download? I don't think this makes sense, a GPL download
should be free.
>
> You do not, because that would discourage Ice from becoming
> ubiquitous, from paving way for becoming a potential de-facto
> standard.
>
> Then, why not simply advertise Ice as being commercial (with unlimited
> free trial plus source code)? Doing so, would get you the extensive
> peer review that you are currently benefitting from. What do you gain
> by going GPL? The freedom to modify and/or redistribute is
> (apparently) pretty restricted anyway.
We are quite happy with our licensing model, and many of our users use
Ice under GPL. I neither see the need to restrict nor to loosen our
licensing terms in any way.
>
>
>>>PS: Please feel free to set FU-Ts as appropriate.
>>
>>What are FU-Ts?
>>
>
>
> "Follow-up To:". Most news clients will allow sending a post to
> multiple groups, restricting any possible responses to certain groups
> alone. A poster who is replying can over-ride it, of course.
Thanks for the explanation. I learn something new every day :)
-- Marc
|
| |
|
| |
 |
Diez B. Roggisch

|
Posted: 2004-12-1 6:38:00 |
Top |
java-programmer >> ANNOUNCE: Ice 2.0 released
> I believe whichever road you take, ZeroC is going to find itself in
> problems. If ZeroC merges the changes made by this/these person(s),
> how can ZeroC now sell it under a commercial license, as closed source
> (violation of GPL)? If you refuse to merge the changes, you have just
> given them a strong impetus to fork. History shows XEmacs and EGCS as
> two such examples.
AFAIK qt is licensed the same way. And there is nothing bad about forks -
but they have to be GPLed too.
Maybe you're not aware of an implication of GPL: A product _using_ a GPL'd
library also has to be GPL. That means you can't develop a commercially
marketed product on top of a GPL library - AFAIK the exact reason why the
LGPL was created, so that you may not alter the lib itself and sell it,
but at least sell software that _uses_ the lib.
So all in all, it seems the GPL/Commercial license makes sense - it does for
trolltech :) And there is nothing in GPL that forces you to integrate code
you've been offered - otherwise, killing a GPL lib would mean to delete all
from a CVS checkout and submit a patch from that - obviouly nobody would
enforce that.
--
Regards,
Diez B. Roggisch
|
| |
|
| |
 |
apm35

|
Posted: 2004-12-1 6:38:00 |
Top |
java-programmer >> ANNOUNCE: Ice 2.0 released
Marc Laukien <email***@***.com> wrote in message news:<email***@***.com>...
> 100% of the Ice source code has been developed by ZeroC employees.
Fixes, bug reports, and enhancement requests have come in from Open
Source developers around the world, as can be seen from the forums on
the ZeroC web site.
Regards,
Andrew Marlow
|
| |
|
| |
 |
Marc Laukien

|
Posted: 2004-12-1 7:12:00 |
Top |
java-programmer >> ANNOUNCE: Ice 2.0 released
apm wrote:
> Marc Laukien <email***@***.com> wrote in message news:<email***@***.com>...
>
>>100% of the Ice source code has been developed by ZeroC employees.
>
>
> Fixes, bug reports, and enhancement requests have come in from Open
> Source developers around the world, as can be seen from the forums on
> the ZeroC web site.
This is of course correct, but I do not think this is in contradiction
to what I stated. The submission of a bug report or an enhancement
request does not constitute development of source code. Neither does the
submittal of a bug fix, if there is only one way to fix a bug.
-- Marc
|
| |
|
| |
 |
johng2001

|
Posted: 2004-12-9 5:51:00 |
Top |
java-programmer >> ANNOUNCE: Ice 2.0 released
Does the Ice team claim any advantages to their Python bindings to
CORBA over omniORBpy (The one I am currently using). Please note that I
am not comparing ICE Vs CORBA. That has been well addressed at ZeroC
and this newgroup. My CORBA use right now is light weight (I don't use
any services). But I was wondering if there are any dynamic language
oriented improvements in ICE bindings?
|
| |
|
| |
 |
Michi Henning

|
Posted: 2004-12-9 7:00:00 |
Top |
java-programmer >> ANNOUNCE: Ice 2.0 released
> Does the Ice team claim any advantages to their Python bindings to
> CORBA over omniORBpy (The one I am currently using). [...]
> But I was wondering if there are any dynamic language
> oriented improvements in ICE bindings?
The Ice Python mapping is simpler than the CORBA one because Ice has
a simpler object model with fewer data types. So, Ice avoids the
complexities caused by things such as type Any, TypeCodes, value types,
bounded sequences, arrays, unions, the fixed type, unsigned versus
signed types, and wide versus narrow characters and strings. Other than
that, the Ice Python mapping is quite similar to the CORBA one, mainly
because, for most language mapping issues, the design problems and (sensible)
solutions are the same.
As far as dynamic improvements are concerned, Ice for Python is a bit more
flexible than omniORBpy. As with omniORBpy, you can put interface definitions
through a compiler to generate stubs and skeletons but, in addition, you can
also use Ice for Python without precompiling the interface definitions and,
instead, load them at run time. As an example, assume you have a
definition as follows:
module M {
enum Color { red, green, blue };
};
Instead of compiling the definition, you can write:
Ice.loadSlice("Color.ice")
import M
print "My favourite color is ", M.Color.blue
Which approach (precompiled or dynamically loaded) you use depends
on the specifics of your application. Dynamically loaded definitions
are useful especially for things such as test harnesses and short throw-away
programs, because not having to compile the definitions first reduces
complexity
and makes the application more compact (because it doesn't depend on a bunch
of additional files that would be created by pre-compiling the definitions).
Of course, the price you pay is a (small) delay during start-up because the
code is generated at run time rather than compile time.
Cheers,
Michi.
|
| |
|
| |
 |
johng2001

|
Posted: 2004-12-9 8:17:00 |
Top |
java-programmer >> ANNOUNCE: Ice 2.0 released
Thanks! Sounds interesting.
> As far as dynamic improvements are concerned, Ice for Python is a bit
more
> flexible than omniORBpy. As with omniORBpy, you can put interface
definitions
> through a compiler to generate stubs and skeletons but, in addition,
you can
> also use Ice for Python without precompiling the interface
definitions and,
> instead, load them at run time. As an example, assume you have a
> definition as follows:
You are describing Dynamic Invocation Interface of CORBA which
omniORBPy does support. I use it for the exact same reasons you mention.
|
| |
|
| |
 |
Duncan Grisby

|
Posted: 2004-12-9 18:21:00 |
Top |
java-programmer >> ANNOUNCE: Ice 2.0 released
In article <IHLtd.64667$email***@***.com>,
Michi Henning <email***@***.com> wrote:
[...]
>Instead of compiling the definition, you can write:
>
> Ice.loadSlice("Color.ice")
> import M
>
> print "My favourite color is ", M.Color.blue
Just like this then?
omniORB.importIDL("Color.idl")
import M
print "My favourite color is ", M.blue
Cheers,
Duncan.
--
-- Duncan Grisby --
-- email***@***.com --
-- http://www.grisby.org --
|
| |
|
| |
 |
Michi Henning

|
Posted: 2004-12-10 7:04:00 |
Top |
java-programmer >> ANNOUNCE: Ice 2.0 released
On Thu, 9 Dec 2004, Duncan Grisby wrote:
> In article <IHLtd.64667$email***@***.com>,
> Michi Henning <email***@***.com> wrote:
>
> [...]
> >Instead of compiling the definition, you can write:
> >
> > Ice.loadSlice("Color.ice")
> > import M
> >
> > print "My favourite color is ", M.Color.blue
>
> Just like this then?
>
> omniORB.importIDL("Color.idl")
> import M
>
> print "My favourite color is ", M.blue
Oops, my apologies! I wasn't aware that omniORBpy does this
as well.
Cheers,
Michi.
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- struts html:checkboxHello
I have a following problem. I want to have both checked in unchecked
checkboxes on my jsp according to values i give them but i dont know how to
force chceckbox that it will be chcecked. I read somewhere that it
corresponds with ActionForm. But how can i set it up before that affect this
checkbox later in form?? I should put it in session ?it doesnt work. when
form is displayed i thought that always a new ActionForm bean is created. So
when can i change values in this bean?? Please help
Marcin Goldyn
- 2
- Please Please Help!!WocBSe1QFHLRlEH2Ki+Gl8DIjHmu9wcQ
Hi all,
Dont know if this is the right place to submit questions. but i need
help :(
I need to convert this pl/sql function to java function so that i can
use it my jsp page.
FUNCTION countItem(adminUser IN STRING,
m_menu IN NUMBER)
RETURN NUMBER IS
cno NUMBER := 0;
CURSOR cAdminMenu(adminUser VARCHAR2 ) IS
SELECT M.menuid,G.pageid,M.description,G.name,G.url
FROM useraccess P, pages G, menues M, submenues T
WHERE P.userid = adminUser
AND T.menuid = M.menuid
AND T.pageid = G.pageid
AND P.pageid=G.pageid
AND G.publicaccess = 'N'
UNION
SELECT M.menuid,G.pageid,M.description,G.name,G.url
FROM groupaccess P, pages G, menues M, submenues T
WHERE P.grpid IN (SELECT GRP_ID FROM GROUPUSERS WHERE USR_ID =
adminUser)
AND T.menuid = M.menuid
AND T.pageid = G.pageid
AND P.pageid=G.pageid
AND G.publicaccess = 'N'
UNION
SELECT M.menuid,G.pageid,M.description,G.name,G.url
FROM pages G, menues M, submenues T
WHERE T.menuid = M.menuid
AND T.pageid = G.pageid
AND G.publicaccess = 'Y'
ORDER BY 1,2;
BEGIN
FOR t IN cAdminMenu(adminUser) LOOP
IF t.menuid = m_menu THEN
cno := cno + 1;
END IF;
END LOOP;
RETURN cno;
END;
I would really appreciate your help.
Regards,
Ayeda
- 3
- Hiding table columns?Hi,
I'm no professional programmer, but I suppose I know enough about the
Table API to do most of the things I need. Now I'm trying to figure
out a good way to implement a functionality into my apps to toggle the
visibility of table columns.
I wonder if anyone here can provide some tips on how to handle this as
the TableColumn class doesn't seem to provide a setVisible() method.
All my tables use a TableModel, so I suspect that's where I need to do
most of the stuff. I'm thinking of setting up some kind of
two-dimensional array to hold the column names, and a visibility flag
for each column. In the TableModel methods I could then use that flag
to determine what columns and data should be processed.
Any help is much appreciated.
--
Luc Van Bogaert
- 4
- [Swing-JButton] Images are not displayed from g.drawImage( )I expect from the following program to show a JButton and
an another button of (my) class JImageButton where the states
'normal' and 'pressed' are taken from two PNGs (download from
http://www.geocities.com/theodosisx/2buttons.zip)
in directory C:\images.
I override the paintComponent() method to show the images and for test
reasons i draw also a line.
The problem is, the images are not displayed. Can anyone help me?
The source follows:
import java.awt.image.*;
import java.awt.*;
import javax.imageio.*;
import javax.swing.*;
import java.net.URL;
import java.io.*;
import java.net.*;
class JImageButton extends JButton
{
public Image Im_normal, Im_pressed;
JImageButton ( )
{
Dimension size = getPreferredSize();
size.width = 115;
size.height = 75;
setPreferredSize(size);
Im_normal = Toolkit.getDefaultToolkit().getImage("C:/images/button_normal.png");
Im_pressed = Toolkit.getDefaultToolkit().getImage("C:/images/button_pressed.png");
setOpaque(false);
setFocusPainted(false);
setContentAreaFilled(false);
}
protected void paintComponent( Graphics g)
{
g.drawLine(0,0,20,20);
g.drawImage( Im_normal, 0,0,this);
if ( getModel().isArmed())
g.drawImage( Im_pressed,0,0,this);
else
g.drawImage( Im_normal, 0,0,this);
}
}
public class TestFrame extends JFrame
{
JPanel pane;
JButton A_Normal_Button;
JButton My_JImage_Button;
TestFrame( )
{
pane = (JPanel) this.getContentPane();
pane.setLayout(null);
A_Normal_Button = new JButton ( );
My_JImage_Button = new JImageButton( );
A_Normal_Button.setBounds (new Rectangle(10, 10,80,50));
My_JImage_Button.setBounds(new Rectangle(10,100,115,75));
pane.add(A_Normal_Button);
pane.add(My_JImage_Button);
this.setSize (800,600);
this.setVisible(true);
}
public static void main(String[] args)
{
new TestFrame();
}
}
- 5
- refactoringPatricia Shanahan <email***@***.com> writes:
> Roedy Green wrote:
>> I have always felt that a if a method can have multiple inputs it
>> should be able to have multiple outputs, but very few language
>> designers (Forth and PostScript being exceptions) have agreed.
>
> Matlab is another exception.
As is Common Lisp.
Regards,
Patrick
------------------------------------------------------------------------
S P Engineering, Inc. | Large scale, mission-critical, distributed OO
| systems design and implementation.
email***@***.com | (C++, Java, Common Lisp, Jini, middleware, SOA)
- 6
- java/44922: JVM crashSynopsis: JVM crash
State-Changed-From-To: open->feedback
State-Changed-By: glewis
State-Changed-When: Thu Apr 1 17:07:01 PST 2004
State-Changed-Why:
The submitter has been asked for feedback.
Responsible-Changed-From-To: freebsd-java->glewis
Responsible-Changed-By: glewis
Responsible-Changed-When: Thu Apr 1 17:07:01 PST 2004
Responsible-Changed-Why:
Over to maintainer.
http://www.freebsd.org/cgi/query-pr.cgi?pr=44922
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
- 7
- Converting String<->byte[] -- No Data Loss?If I have a byte[] and I convert it to string (String sData = new
String(byte[] bData), then convert it back (byte bData = sData.getBytes()),
will all data be intact, or do Strings have problems with bytes that are
not printable characters? I've tested this and it seems to work fine, but
I want to make sure there isn't some condition or situation I'm not aware
of that could cause problems.
I'm doing this because it's easier to do some of my work with strings, so
I'm reading a Zip file, saving each entry as a String, modifying some, then
saving it as a new Zip. I've found with Zip files, you can't always be
sure of how much data you'll be able to read in, so I'm reading in data in
blocks upto 2k, then taking each block and converting it to a String, so I
can concatenate the amount read in onto the end of another string. (With
Strings, I can use sString.substring(), I can't find a way to concatenate
byte[] arrays without continually creating a new array and using
System.arrayCopy().)
Thanks for any info.
Hal
- 8
- Protected inner classes and inheritanceApologies if I am missing something obvious, but here's the situation. I have
a top-level class with a protected inner class. I have a second-level class
in a different package that extends the top-level class. For example:
package somePackage;
public class TopLevel
{
protected class Inner
{
protected int intField = 0;
protected Inner()
{
// constructor
}
protected void innerMethod()
{
return;
}
}
}
package somePackage.otherPackage;
import somePackage.TopLevel;
import somePackage.TopLevel.Inner;
public class SecondLevel extends TopLevel
{
public SecondLevel()
{
// constructor
}
public void someMethod()
{
Inner inner = new Inner();
inner.intField = 1;
inner.innerMethod();
}
}
When I compile the second class, I get at least 4 errors:
The type somePackage.TopLevel.Inner is not visible
The constructor TopLevel.Inner() is not visible
The field TopLevel.Inner.intField is not visible
The method innerMethod() from the type TopLevel.Inner is not visible
I thought I read the Java docuementation clearly when is says
"The protected modifier specifies that the member can only be accessed within
its own package (as with package-private) and, in addition, by a subclass of
its class in another package."
and
"You can use the same modifiers for inner classes that you use for other
members of the outer class. For example, you can use the access specifiers --
private, public, and protected -- to restrict access to inner classes, just as
you do to other class members."
If I simply make TopLevel.Inner a public class, the errors go away. But I
don't really want to do that... Anything obvious??
thanks
scott
- 9
- weird exception during start of applet... (J2SE5)Hi,
does somebody have an idea what the exception:
java.lang.NoClassDefFoundError: IllegalName: <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
at java.lang.ClassLoader.preDefineClass(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.xml.sax.helpers.NewInstance.newInstance(Unknown Source)
at org.xml.sax.helpers.XMLReaderFactory.loadClass(Unknown
Source)
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown
Source)
at Graph.init(Graph.java:465)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
mean?
The weird thing is, i have two pages on the first one i get this
exception
and on the other one, the applet work.
Check it out
not working -> http://www.stephan-zehrer.de/LiveGraph
working -> http://www.stephan-zehrer.de/html/graph/
They both uses the same jar file.
What's wrong?
thx
Steve
- 10
- JTree display update issue with new nodesI have a problem with the following code. The code is supposed to create a
new node and add it as a child to another node in a JTree. This is indeed
happening but the tree is only updating the display and selecting the new
node the first time a node is added. For each subsequent child node, it
appears as though the child node is added successfully but it is just not
appearing in the tree. If I check getChildCount() on the parent node after
each child is added it reveals the correct number so it seems to be a
display issue. Could someone please point out the mistake in the following
code?
This code exists in a control class (not in the JTree itself). The variable
parentNode is a DefaultMutableTreeNode passed in as a parameter:
DefaultMutableTreeNode childNode = new DefaultMutableTreeNode();
parentNode.add(childNode);
tree.setSelectionPath(new TreePath(childNode.getPath()));
MyTreeModel model = (MyTreeModel)tree.getModel();
model.nodesWereInserted(parentNode, new int[] {parentNode.getChildCount() -
1});
tree.repaint();
This is the tree model:
public class MyTreeModel extends DefaultTreeModel
{
private DefaultMutableTreeNode root;
private ArrayList<TreeModelListener> listeners = new
ArrayList<TreeModelListener>();
public MyTreeModel(DefaultMutableTreeNode root)
{
super(root);
this.root = root;
}
public void addTreeModelListener(TreeModelListener l)
{
listeners.add(l);
}
public Object getChild(Object parent, int index)
{
return ((DefaultMutableTreeNode)parent).getChildAt(index);
}
public int getChildCount(Object parent)
{
return ((DefaultMutableTreeNode)parent).getChildCount();
}
public int getIndexOfChild(Object parent, Object child)
{
return
((DefaultMutableTreeNode)parent).getIndex((DefaultMutableTreeNode)child);
}
public Object getRoot()
{
return root;
}
public boolean isLeaf(Object node)
{
return ((DefaultMutableTreeNode)node).isLeaf();
}
public void removeTreeModelListener(TreeModelListener l)
{
listeners.remove(l);
}
public void valueForPathChanged(TreePath path, Object newValue)
{
}
}
--
And loving it,
qu0ll
______________________________________________
email***@***.com
(Replace the "SixFour" with numbers to email)
- 11
- Eclipse Javadoc Auto-Formatting: HTML Tags Trailing Spacecomp.lang.java.softwaretools -
I've been using Eclipse for a few years and am currently using 3.1. I've
noticed that whenever I include an anchor (<a>) tag in my Javadoc, the code
formatter always adds a trailing space before the closing tag. E.g.
Before: Go <a href="http://www.google.com">here</a>.
After: Go <a href="http://www.google.com">here </a>.
It doesn't happen with the <code> tag, and I'm hoping that it's configurable
somewhere. It's doesn't appear to be an option in the main Code Formatter
interface.
Thanks,
Josh
--
Josh
- 12
- operator precedance: new MyClass.method()Hi,
According to the operator precedence table, the dot operator has a higher
precedence than the 'new' operator:
http://java.sun.com/docs/books/tutorial/java/nutsandbolts/expressions.html
Therefore when I write
new myClass.method()
it should, according to this table, be parsed as
new (myClass.method())
which is nonsensical and doesn't compile.
It seems to be parsed as this instead:
(new myClass).method()
Is there an explanation?
****
sample code:
****
public class C {
public int i = 0;
public C(int i) {
this.i = i;
}
public int getI() {
return i;
}
public static void main(String args[]){
System.out.println(new C(20).getI());
// is parsed as:
//System.out.println( (new C(20)).getI() ); ==> ok
// but according to precedance table should be parsed as:
//System.out.println( new (C(20).getI()) ); ==> wrong
}
}
--
Rob
- 13
- Eclipse Plug-insI have installed Eclipse 2.0.2. In working through the tutorial I came
upon "Creating Your First Java Project." Step #5 says this:
Click the Browse button next to the Zip file field and browse to
select
<workbenchRoot>/plugins/org.eclipse.jdt.ui.examples.projects/archive/junit/junit37src.jar.
Note: This step assumes that the JDT example plug-ins have been
downloaded and installed.
The closest thing within the IDE is this:
<workbenchRoot>/plugins/org.eclipse.jdt.ui
I have looked all through the Eclipse website. I have found several
plug-ins but not this set. Can anybody point me in the right
direction?
Bob
- 14
- How best to keep code and gui separated but harmoniousHello,
I am wishing to create an image model class and will need some way to
display images.
I know that JFrame, JPanel and Canvas support displaying images and are
ideal candidates.
Rather than put all the code for image related functionality in one of
these components, I want to be able to create an image model class
separately taking one of these components or even a subclass of these
components but only this range of components and perform operations on
it I guess like an MVC but only two classes not three.
So as an example I have JFrame but do not want to display the image
directly on it but instead want to use a JPanel or a Canvas inside a
scroll pane and have my image model class perform the operations on the
JPanel or Canvas or subclass of.
So I know that the image model class would take a reference to the
JPanel, Canvas or a subclass of these but nothing else and the JFrame
would have a reference to the image model class.
Selecting menu or button items from the JFrame would invoke a command,
passed to the image model class which would execute the command and
apply changes to the JPanel, Canvas or subclass of one of these.
How would I even start I have read information on Generics and
Interfaces and can see either of these could be used but not sure where
to start.
I am not trying to create a photoshop clone :) but want basics like zoom
in out and area, rotate and flip. In time I will probably add new image
related functionality, but don't want to be tied to a JPanel or a Canvas
or anything, especially if a new component appears in the future which
maybe better suited?
I hope someone can understand what I am trying to achieve here I sort of
do but it is still a bit hazy and vague and not sure where to start or
how to start.
Thanks
Rich
- 15
- JNI: Accessing value in an arrayI have a code::
jobject headerVal;
//jsize size = 0;
jclass objClass;
jmethodID mid = NULL;
void * headval;
do
{
/* after this call, headval will contain a pointer to an array.and
HeadID will contain an int value.*/
GetValue( headval,headdID);
if(headval)
{
objClass = (*env)->FindClassenv, "Ljava/lang/Object;");
if(objClass == NULL)
{
break;
}
mid = (*env)->GetMethodID(env, objClass, "<init>", "(J)V");
if(mid == NULL)
{
break;
}
if(headID>0x30 || headID < 0x3F)
{
headerVal = (*env)->NewObject(env, objClass, mid,(jstring)headval);
}
else if(headerID>0x70 || headerID < 0x7F)
{
headerVal = (*env)->NewObject(env, objClass, mid,(jbyteArray)headval);
}
else if(headerID>0xB0 || headerID < 0xBF)
{
headerVal = (*env)->NewObject(env, objClass, mid,
(jbyte)headval);
}
else if(headerID>0xF0 || headerID < 0xFF)
{
headerVal = (*env)->NewObject(env, objClass, mid,
(jlong )headval);
}
}
}while(FALSE);
return headerVal;
}
I know it is not the correct way to assign headerVal. how can i assign
the value contained in array pointed by headval???
I am a beginner in c and dont know much abt pointers...
please do help me...
|
|
|