 |
 |
Index ‹ java-programmer
|
- Previous
- 1
- float to int conversionSystem.out.println(new Float(21082007.0).intValue()); // -> 21082008
System.out.println(new Double(21082007.0).intValue()); // -> 21082007
Why?
System.out.println(new BigDecimal(21082007.0F).intValue()); // ->
21082008
System.out.println(new BigDecimal(21082007.0D).intValue()); // ->
21082007
Again, why?
And what's the proper way of doing it, using always a double?
Thanks in advance
- 1
- selling EJBHi,
Where can be EJB components sold on the internet. We are a software company:
ZetaFoxeDesign Software Developement and we are thinking about starting new
activity. We just don't konw if it's a good idea to off the shelf EJB
component vendor.
Sebastian
- 2
- SIGSEGV in java 1.4.2-p6
--Boundary-00=_CsGdAwPnbap1q+D
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hello,
Running a freenet node I manage to get a segfault from javavm. It appears
to happen at random intervals. Attached is the java error log and system CV.
Please let me know if I can provide more information.
--
Wade Klaver
Wavefire Technologies Corporation
GPG Public Key at http://archeron.wavefire.com
/"\ ASCII Ribbon Campaign .
\ / - NO HTML/RTF in e-mail .
X - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
--Boundary-00=_CsGdAwPnbap1q+D
Content-Type: text/plain;
charset="us-ascii";
name="typescript"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="typescript"
Script started on Wed Apr 7 13:41:44 2004
bash-2.05b$ uname -a
FreeBSD ***.***.com 5.2-CURRENT FreeBSD 5.2-CURRENT #26: Thu Mar 11 08:25:16 PST 2004 root@***.***.com:/usr/obj/usr/src/sys/WORKSTATION-5.0-SMP i386
bash-2.05b$ javavm -version
java version "1.4.2-p6"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-p6-root_12_mar_2004_07_21)
Java HotSpot(TM) Client VM (build 1.4.2-p6-root_12_mar_2004_07_21, mixed mode)
bash-2.05b$ cat hs_err_pid50222.log
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x2814A927
Function=flockfile+0x1F
Library=/lib/libc.so.5
Current Java thread:
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:770)
at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1059)
at java.net.InetAddress.getAllByName0(InetAddress.java:1009)
at java.net.InetAddress.getAllByName0(InetAddress.java:981)
at java.net.InetAddress.getAllByName(InetAddress.java:975)
at java.net.InetAddress.getByName(InetAddress.java:889)
at freenet.transport.tcpAddress.doDeferredLookup(tcpAddress.java:119)
at freenet.transport.tcpAddress.connect(tcpAddress.java:130)
at freenet.OpenConnectionManager$ConnectionJob.run(OpenConnectionManager.java:969)
at freenet.OpenConnectionManager.createConnection(OpenConnectionManager.java:451)
- locked <0x2c5eb158> (a freenet.OpenConnectionManager$ConnectionJob)
at freenet.node.ConnectionOpener.checkpoint(ConnectionOpener.java:95)
at freenet.node.states.maintenance.Checkpoint.checkpoint(Checkpoint.java:54)
at freenet.node.states.maintenance.Checkpoint.received(Checkpoint.java:47)
at freenet.node.StateChain.received(StateChain.java:177)
at freenet.node.StateChain.received(StateChain.java:61)
- locked <0x2c5eafc0> (a freenet.node.StateChain)
at freenet.node.StateChainManagingMessageHandler$ChainContainer.run(StateChainManagingMessageHandler.java:332)
- locked <0x2c5eafc0> (a freenet.node.StateChain)
at freenet.node.StateChainManagingMessageHandler$ChainContainer.received(StateChainManagingMessageHandler.java:285)
at freenet.node.StateChainManagingMessageHandler$ChainContainer.access$100(StateChainManagingMessageHandler.java:204)
at freenet.node.StateChainManagingMessageHandler.handle(StateChainManagingMessageHandler.java:96)
at freenet.Ticker$Event.run(Ticker.java:323)
at freenet.thread.YThreadFactory$YThread.run(YThreadFactory.java:250)
Dynamic libraries:
0x8048000 /usr/local/jdk1.4.2/bin/java
0x28080000 /usr/lib/libpthread.so.1
0x280a3000 /lib/libc.so.5
0x2816f000 /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so
0x28589000 /usr/lib/libstdc++.so.4
0x2863b000 /lib/libm.so.2
0x28653000 /usr/local/jdk1.4.2/jre/lib/i386/native_threads/libhpi.so
0x28661000 /usr/local/jdk1.4.2/jre/lib/i386/libverify.so
0x28676000 /usr/local/jdk1.4.2/jre/lib/i386/libjava.so
0x28695000 /usr/local/jdk1.4.2/jre/lib/i386/libzip.so
0x40a66000 /usr/local/jdk1.4.2/jre/lib/i386/libnet.so
0x40a99000 /usr/local/jdk1.4.2/jre/lib/i386/libnio.so
0x2804e000 /libexec/ld-elf.so.1
Heap at VM Abort:
Heap
def new generation total 4288K, used 1920K [0x2c430000, 0x2c8d0000, 0x2d7e0000)
eden space 3840K, 48% used [0x2c430000, 0x2c5fd4b8, 0x2c7f0000)
from space 448K, 16% used [0x2c860000, 0x2c872e60, 0x2c8d0000)
to space 448K, 0% used [0x2c7f0000, 0x2c7f0000, 0x2c860000)
tenured generation total 54720K, used 34048K [0x2d7e0000, 0x30d50000, 0x3c430000)
the space 54720K, 62% used [0x2d7e0000, 0x2f9202d0, 0x2f920400, 0x30d50000)
compacting perm gen total 6400K, used 6241K [0x3c430000, 0x3ca70000, 0x40430000)
the space 6400K, 97% used [0x3c430000, 0x3ca48568, 0x3ca48600, 0x3ca70000)
Local Time = Wed Apr 7 13:18:48 2004
Elapsed Time = 2786
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-p6-root_12_mar_2004_07_21 mixed mode)
#
bash-2.05b$ exit
Script done on Wed Apr 7 13:42:24 2004
Loaded symbols for /libexec/ld-elf.so.1
#0 0x2809a42f in pthread_testcancel () from /usr/lib/libpthread.so.1
(gdb) bt
#0 0x2809a42f in pthread_testcancel () from /usr/lib/libpthread.so.1
#1 0x2808c8c1 in sigaction () from /usr/lib/libpthread.so.1
#2 0x28086cf5 in pthread_kill () from /usr/lib/libpthread.so.1
#3 0x280866e0 in raise () from /usr/lib/libpthread.so.1
#4 0x28148b07 in abort () from /lib/libc.so.5
#5 0x2845eae2 in os::abort(int) ()
from /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so
#6 0x2845c9e4 in os::handle_unexpected_exception(Thread*, int, unsigned char*, void*) () from /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so
#7 0x28460ff5 in JVM_handle_bsd_signal ()
from /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so
#8 0x2845fa7d in signalHandler ()
from /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so
#9 0x2808b513 in sigaction () from /usr/lib/libpthread.so.1
#10 0x2808b3ba in sigaction () from /usr/lib/libpthread.so.1
#11 0x2808be89 in sigaction () from /usr/lib/libpthread.so.1
#12 0x28093767 in pthread_mutexattr_init () from /usr/lib/libpthread.so.1
#13 0x280936b2 in pthread_mutexattr_init () from /usr/lib/libpthread.so.1
#14 0x28135363 in _ctx_start () from /lib/libc.so.5
#15 0x2816cd84 in __isthreaded () from /lib/libc.so.5
--Boundary-00=_CsGdAwPnbap1q+D
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
--Boundary-00=_CsGdAwPnbap1q+D--
- 2
- Passing by reference, more confusion...I have an object that's passed in to a function as a parameter i.e public
boolean getProjectTitle(ProjectHeader_DTO obj) {...}
If I then call a method on this object inside the function i.e
obj.setTitle("test") then using obj.getTitle() from outside the function it
displays the property set correctly!
But doing something like this inside the function doesn't -
ProjectHeader_DTO x = new ProjectHeader_DTO();
x.setProjectTitle("test");
obj=x;
As long as I explictly set the properties it works but why not when
assigning another object?
Tried using the clone() method aswell & inside the function its works fine
until after the return!
I do not want the object to be return'ed from the function!
Any ideas?
thanks
harry
- 3
- Slashdot says Nyet to MonoNot that I particularly care anymore, especially given the very strong
push by Java in open source circles (e.g. Apache's planned J2EE
Geronimo app server and Red Hat's plan to create an open source Java),
but it seems a lot of open source advocates in slashdot seem to feel
the same way I do - Mono is a useless and doomed project that is also
rendered dangerous for Linux by the Microsoft patents hanging over it.
http://www.freeroller.net/page/kalimantan/20030914#slashdot_says_nyet_to_mono
- 3
- Date and Time conversionI have an Integer variable which contains date in YYYYMMDD format. I want to
convert it first to a Date variable and then to a String variable with
format MM/DD/YYYY. How can I do that?
I also have an Integer which contain time in HHMMSS format. I want to
convert it to a String variable with format HH:MM:SS. How can I do that?
TIA
- 4
- Class.forname() vs clone()email***@***.com (Mitch Ratisher) wrote in message news:<email***@***.com>...
> email***@***.com (iksrazal) wrote in message news:<email***@***.com>...
> > email***@***.com (Mitch Ratisher) wrote in message news:<email***@***.com>...
> > > I'm not quite sure what you are trying to do, but the way I've done
> > > factories is to load a Map with Class objects when the factory is
> > > created. Then all you have to do is pass the Map whatever you mapped
> > > the class to, and call newInstance() on the Class object.
> > >
> >
> > Could you post some code? I've seen maps of objects using clone, and
> > passing a class name string to forname/newInstance, but never maps
> > directly with newInstance.
> >
> > I have a Abstract class, and I want to use a static method to retrieve
> > the requested factory. The class is not a singleton, although I
> > suppose it could be.
> >
> > Thanks for the reply,
> > iksrazal
>
>
>
> private static Map map = new HashMap();
>
> // static initializer
> static {
> map.put("class1" MyClass1.class);
> map.put("class2" MyClass2.class);
> }
>
> public static Object newObject(String type)
> {
> Class clazz = (Class)map.get(type);
> return clazz.newInstance();
> }
>
>
> You'll still have to catch a bunch of exceptions that can be thrown by
> newInstance(), but that's all there is to it. If you can't hardcode
> the class names, use Class.forName(name) as the 2nd argument in the
> put() calls, where name is a String that was read from a properties
> file.
Thanks a lot Mitch!
iksrazal
- 4
- Why jsp can't get the Vector fill with user-defined class by the Remote interface?Because It is a big project so i provide a model to express my
question,
Qestion is:I want get the Vector full fill with the a Object in Jsp.
but I can't get it,There will problem will return test return,but we I
Choose String but no class a 's object ,It can be return successful.It
seems that jsp Can't recognize the class a,,but I really include the
Ejb module in jsp's lib.and editor alse prompt a's information.
I alse test it in JBoss server It alse occur Exception!
I cant understand why,
so come to here ask why?Please help me,3ks very much!!!
----------------------------------------------------------------------------------------------------
I use Netbean 6.1,Glassfish.Ejb3
import javax.ejb.Stateless;
1.
@Stateless(mappedName="T")
public class vectorBean implements vectorRemote {
//Vector v;
//@PostConstruct
//public void Init(){v=new Vector}
public Vector test(){
Vector v=new Vector();
v.add(new a("alex",14));
return v; }
}
2. a is a simple class
public class a {
public String m;
public int n;
public a(String m, int n) {
this.m = m;
this.n = n;
}
getter,and setters!
}
3.Jsp
InitialContext ctx=new InitialContext();
//ShoppingCartRemote
s=(ShoppingCartRemote)ctx.lookup("shopcart");
vectorRemote s=(vectorRemote)ctx.lookup("T");
Vector v=s.test();
Enumeration e=v.elements();
while(e.hasMoreElements()){
a p=(a)e.nextElement();
out.println(p.m);
}
- 11
- [Struts] Composite actions using include?Hi,
I have a Struts 1.1 based webapp. A new requirement has come
up, which I can satisfy by executing the existing actions A, B, C
and forwarding to a new page xyz.jsp. The idea would be to
write an action X and from there include (not forward) the
existing actions, do some additional magic, and finally return
an ActionForward poiting to xyz.jsp.
How can I define an ActionMapping that allows me to do that?
Or must I hardcode includes to A, B, C in X using
RequestDispatcher.include()?
Is this even feasible?
What are the alternatives? Perhaps I could define A', B', C' in my
struts-config, such that A' forwards to B' forwards to C' forwards to xyz.
(But this would require changing existing code, too, because there would
be no place for X's extra magic).
Any thoughts?
-- Sebastian
- 12
- GWT: Deploying the server code in TomcatCan anybody point me to some simple instructions for deploying the server
code in Google Web Toolkit to a Tomcat server?
--
Paul Tomblin <email***@***.com> http://blog.xcski.com/
---------------- hit any user to continue ----------------
- 14
- HP/UX Java 1.3.1.02 date/time differencesHi!
We seem to have differences between the unix system time (coming from
an NTP server) and the time our java application has (as it produces
timestamps).
At the start of the app the time is synchro and after about 2 weeks
the time is 20secs ahead of the system time...
Does the Java VM calculates the current time by its own (i.e. counting
secs from start)? Or should it better get the time (if
System.currentTimeMillis() is called) from the host system?
Regards,
Steffen
- 14
- Ant complaintHaving spent the past several hours trying to solve what ought to have
not even been a problem to begin with, I've noticed something about
Ant.
It appears that Ant as it is delivered comes with a bunch of optional
tasks that it knows about inherently, such as the Scp task.
It also appears that while Ant ships knowing what these tasks are, it
does not ship with jars they depend upon, such as jsch. The
documentation tells you to go out and get these jars on your own, and
put them in your Ant lib folder.
Here's the part I don't like. When Ant starts, it appears to try to
load optional tasks like Scp. When such tasks fail to load the first
time, due to the dependencies not being there, it is then impossible
to recreate a task with the same classname later using a taskdef
element, even if you include your own path containing all the jars it
needs.
Let me explain why this is a big issue. I work in a team. X number of
developers on my team share the same build script, on far-flung
machines.
I want to add Scp to the build script. I cannot simply manually put
the jsch jar in my own Ant lib folder. It won't work when anyone else
on my team tries it.
Instead, I need to check the jsch jar into my project along with the
ant script. Then, every developer on my team who gets the new script
will also get the jar to go with it. So far this seems fine.
The problem is that when the developer runs Ant, I still cannot
instantiate the Scp task because the jsch jar is not in the classpath
when ant starts. And, for some bizzare reason, I cannot even define a
new scp taks using a taskdef element with a classpath (the way you'd
do it if you were deploying your own task). Why this fails I don't
know. My guess is that Ant somehow keeps track by class name that the
task failed to load when Ant started, and refuses to try to load it
again.
I tried many ways to solve this problem, including copying the jsch
jar into Ant's lib folder. Nothing works because before I can do
anything Ant has already decided that Scp is an unloadable task.
This is terrible behavior. Ant should either not come with "optional"
tasks predefined that won't load, or it should at least offer the
chance to reload them with a specific classpath later.
Can anyone think of any way around this problem?
- 15
- Force Reload on JSP Pages?I've noticed this odd behavior when working on my Web application, where if
a JSP page was cache-able then the servlet would never run. I guess this is
normal since the browser assumes the page doesn't change, so it doesn't put
a request in to the server.
But I'm curious. Is there some command or perhaps a server config that would
allow all JSP pages, whether cached or not, to always reload? I hope this
makes sense, if more is required, I'd be glad to explain more. Thanks for
any assistance in advance!
Emery.
/\^/\^/\
Sun Certified Java Programmer
www.websamba.com/javarobotics/
E-stronomy - Astronomical Resources
www.websamba.com/e-stronomy/
- 16
- Relationships using BMP Entity BeansHi,
Is there anyway to create a relationship between two BMP Entity Beans?
I know that CMP Entity Beans 2.0 supports relationships throgh CMR
fields, but I didn't find a way to do the same with BMP.
Anybody knows?
Thanks,
Joan
- 16
- Daylight Savings Time in CalendarPhilipp wrote:
> Philipp wrote:
>> John B. Matthews wrote:
>> So I really want to take any locale and remove the DST (only if there
>> is one).
>>
>> I know of a workaround which is to write:
>>
>> cal.setTimeInMillis(now.getTime() - cal.get(Calendar.DST_OFFSET));
>>
>> but this is ugly as I am actually changing the timestamp and not the
>> representation of the timestamp.
>
> Update: this workaround is actually wrong during one hour at the time
> change period. So it's not a good solution. If anybody knows of a better
> one, I'd be happy to use it.
DateFormat df = new SimpleDateFormat("HH");
TimeZone tz = TimeZone.getTimeZone("GMT");
tz.setRawOffset(cal.getTimeZone().getRawOffset());
df.setTimeZone(tz);
System.out.println(df.format(cal.getTime()));
Arne
|
| Author |
Message |
asj

|
Posted: 2006-4-30 1:17:00 |
Top |
java-programmer, Why Linux + Java
asj wrote:
> Yes, a smartcard runs a 30 MB JVM....get a clue and read about it
> before you post.
> I suppose these Java SPOT (smart programmable objects) have a 30 MB JVM
> too?
forgot the link:
http://sunspotworld.com/
> I suppose a lower end mobile phone runs a 30 MB JVM?
|
| |
|
| |
 |
asj

|
Posted: 2006-4-30 1:17:00 |
Top |
java-programmer >> Why Linux + Java
asj wrote:
> Yes, a smartcard runs a 30 MB JVM....get a clue and read about it
> before you post.
> I suppose these Java SPOT (smart programmable objects) have a 30 MB JVM
> too?
forgot the link:
http://sunspotworld.com/
> I suppose a lower end mobile phone runs a 30 MB JVM?
|
| |
|
| |
 |
Roedy Green

|
Posted: 2006-4-30 2:56:00 |
Top |
java-programmer >> Why Linux + Java
On 29 Apr 2006 10:08:02 -0700, "asj" <email***@***.com> wrote,
quoted or indirectly quoted someone who said :
>You do know Java is an interpreted language right?
Sometimes. Sometimes it is an assembler for a Java chip. Sometimes it
is jitted. Sometimes hotspotted sometimes natively compiled.
The Jet native compiler generates code faster than a human assembler
programmer would write.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
|
| |
|
| |
 |
Roedy Green

|
Posted: 2006-4-30 2:58:00 |
Top |
java-programmer >> Why Linux + Java
On 29 Apr 2006 09:08:54 -0700, "tab" <email***@***.com>
wrote, quoted or indirectly quoted someone who said :
>And as I said, JAVA is not PRETTY TO INSTALL.
You need the JDK to develop and a JRE to run. Other than that how is
it different from installing any other program?
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
|
| |
|
| |
 |
asj

|
Posted: 2006-4-30 3:21:00 |
Top |
java-programmer >> Why Linux + Java
Roedy Green wrote:
> On 29 Apr 2006 09:08:54 -0700, "tab" <email***@***.com>
> wrote, quoted or indirectly quoted someone who said :
>
> >And as I said, JAVA is not PRETTY TO INSTALL.
>
> You need the JDK to develop and a JRE to run. Other than that how is
> it different from installing any other program?
and how cool is it to use Java webstart to install stuff?
http://java.sun.com/products/javawebstart/
I've used this to install and automatically update thousands of users
for a java desktop app -
So long as you have the needed JRE, you just click on a link and the
installtion is done for you....
For example:
http://www.javazoom.net/jlgui/sources.html
|
| |
|
| |
 |
arachnid

|
Posted: 2006-4-30 9:34:00 |
Top |
java-programmer >> Why Linux + Java
On 29 Apr 2006 10:08:02 -0700, "asj" <email***@***.com> wrote:
>arachnid wrote:
>
>> I used to see a whole lot more programs on the BBS's written in simple
>> 13-step BASIC than in C, but the latter tended to be better-written
>> and more-useful. I mean, how much kernel code is written in Java? How
>> about *nix shells or the GUI?
>
>You do know Java is an interpreted language right?
Yup. That's what makes it so sloooooooow compared to C! ;o)
|
| |
|
| |
 |
Roedy Green

|
Posted: 2006-4-30 9:48:00 |
Top |
java-programmer >> Why Linux + Java
On Sat, 29 Apr 2006 20:34:21 -0500, arachnid
<email***@***.com> wrote, quoted or indirectly quoted
someone who said :
>Yup. That's what makes it so sloooooooow compared to C! ;o)
It is one thing not to know what you are talking about, and quite
another to pretend you do.
What is this mysterious C! language you are referring to?
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
|
| |
|
| |
 |
arachnid

|
Posted: 2006-4-30 10:10:00 |
Top |
java-programmer >> Why Linux + Java
On Sun, 30 Apr 2006 01:47:30 GMT, Roedy Green
<email***@***.com> wrote:
>On Sat, 29 Apr 2006 20:34:21 -0500, arachnid
><email***@***.com> wrote, quoted or indirectly quoted
>someone who said :
>
>>Yup. That's what makes it so sloooooooow compared to C! ;o)
>
>It is one thing not to know what you are talking about, and quite
>another to pretend you do.
I've already made it quite clear that I'm just helping asf try to
start a best-programming-language flameware.
>
>What is this mysterious C! language you are referring to?
If MS can have C#, I can have C!
|
| |
|
| |
 |
Oliver Wong

|
Posted: 2006-5-1 22:57:00 |
Top |
java-programmer >> Why Linux + Java
"arachnid" <email***@***.com> wrote in message
news:email***@***.com...
> On 28 Apr 2006 09:45:01 -0700, "L Leed" <email***@***.com> wrote:
>
>>arachnid wrote:
>>> I said it was unavailable for nearly a year, not that it's unavailable
>>> now. Backporting it a year too late doesn't send me back in a time
>>
>>BS. It was an honest mistake (On Sun's part) that was corrected almost
>>immediately.
>
> A year without a JVM is not "immediately".
According to the comments posted along side the Slashdot article linked
to earlier in this thread, the mistake was corrected before the article
appeared on Slashdot. That's pretty darn close to "immediately", IMHO.
- Oliver
|
| |
|
| |
 |
The Ghost In The Machine

|
Posted: 2006-5-2 3:38:00 |
Top |
java-programmer >> Why Linux + Java
In comp.lang.java.advocacy, tab
<email***@***.com>
wrote
on 29 Apr 2006 09:08:54 -0700
<email***@***.com>:
> So,
> JAVA SUCKS ON LINUX.
> I say USA, they give me UK info.
> And as I said, JAVA is not PRETTY TO INSTALL.
>
> Good idea, change to MONO.
>
> But JAVA SUCKS ON LINUX.
>
Client-side Java, unfortunately, sucks just about
everywhere, and it's a pity since I do like Swing's
programming methods, if not its aesthetics. I'm not sure
C# looks much better, either. Ansi C is arguably the best
solution, even if it does feel like using a manual tranny
with an underpowered gearbox at times.
But Ansi C is portable and highly standard.
For those who need interactive scripting, Bash, Python,
and Perl. Tcl/Tk is on the wane from the looks of things.
XML is top dog in the data market (which is OK if one can
tolerate its inefficiency because of <tag>...</tag> and
' ' instead of ' ').
As for installation...that's a more general issue in Linux,
and is probably best argued in COLA as opposed to CLJA.
Followups redirected. I'm not sure it's even a *problem*.
--
#191, email***@***.com
Windows Vista. Because it's time to refresh your hardware. Trust us.
|
| |
|
| |
 |
asj

|
Posted: 2006-5-2 4:22:00 |
Top |
java-programmer >> Why Linux + Java
the news reports between when the story first broke and when it was
fixed was several days.
asj - still basking under the sun with the nokia 9300 and opera mini
java browser as my windows to the world.
|
| |
|
| |
 |
asj

|
Posted: 2006-5-2 4:29:00 |
Top |
java-programmer >> Why Linux + Java
so what about swing don't you like? maybe swt would be an alternative
for you, or thinlets? u might wanna check out javadesktop.org for new
swing devts.
asj - it's sunny in nj, and my opera mini java browser is a window to
the net around me.
|
| |
|
| |
 |
The Ghost In The Machine

|
Posted: 2006-5-2 5:00:00 |
Top |
java-programmer >> Why Linux + Java
In comp.lang.java.advocacy, asj
<email***@***.com>
wrote
on 29 Apr 2006 10:08:02 -0700
<email***@***.com>:
> arachnid wrote:
>
>> I used to see a whole lot more programs on the BBS's written in simple
>> 13-step BASIC than in C, but the latter tended to be better-written
>> and more-useful. I mean, how much kernel code is written in Java? How
>> about *nix shells or the GUI?
>
> You do know Java is an interpreted language right?
FSVO "interpreted". Java now comes with a JITter (and
has since 1.2 or 1.3); if a portion of bytecode is run
more than a few times it gets compiled into machine code,
but only at that point.
For its part C# compiles *everything* down to machine code,
presumably upon invoke on the machine requiring the code
(the intermediate byte code is generated by the executable
most people would call the "C# compiler" but that's only
part of the job).
Different philosophies, and AIUI the Java one works
slightly better, but I for one haven't benchmarked the
issue and there's a fair number of differences precluding
such a benchmark, mostly because the languages are quite
different.
[rest snipped]
--
#191, email***@***.com
Windows Vista. Because it's time to refresh your hardware. Trust us.
|
| |
|
| |
 |
Roedy Green

|
Posted: 2006-5-2 8:17:00 |
Top |
java-programmer >> Why Linux + Java
On Mon, 01 May 2006 21:00:05 GMT, The Ghost In The Machine
<email***@***.com> wrote, quoted or indirectly quoted
someone who said :
>FSVO "interpreted". Java now comes with a JITter (and
>has since 1.2 or 1.3); if a portion of bytecode is run
>more than a few times it gets compiled into machine code,
>but only at that point.
On top of that there is hotspotting, -- watching code run to gather
stats to optimise the machine code. And static AOT compilation such
as Jet.
See http://mindprod.com/jgloss/jet.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
|
| |
|
| |
 |
The Ghost In The Machine

|
Posted: 2006-5-2 10:00:00 |
Top |
java-programmer >> Why Linux + Java
In comp.lang.java.advocacy, asj
<email***@***.com>
wrote
on 1 May 2006 13:29:25 -0700
<email***@***.com>:
> so what about swing don't you like? maybe swt would be an alternative
> for you, or thinlets? u might wanna check out javadesktop.org for new
> swing devts.
Swt would be good. I know nothing about "thinlets" unless you're
referring to something along the lines of ZK:
http://zk1.sourceforge.net/
which is buggy but quite interesting from a UI point of view.
>
> asj - it's sunny in nj, and my opera mini java browser is a window to
> the net around me.
>
Opera's not too bad. It's IE that gives me most headaches. :-)
--
#191, email***@***.com
Windows Vista. Because it's time to refresh your hardware. Trust us.
|
| |
|
| |
 |
tab

|
Posted: 2006-5-2 10:50:00 |
Top |
java-programmer >> Why Linux + Java
>Other than that how is it different from installing any other program?
Are you for real? Have a user install java and then verify
at www.java.com. Make sure the new version, verifies.
Don't forget, Java does not auto update from sun, but if you
are VERY lucky, your distro will.
And a jar file is not doubleclickable.
YOU ARE BASICALLY A MORON?
|
| |
|
| |
 |
asj

|
Posted: 2006-5-2 11:33:00 |
Top |
java-programmer >> Why Linux + Java
tab wrote:
> Like, java is not open source?
Although Java the language is not open source, there are tons of open
source Java applications - lin fact, Java is the #1 language used in
SourceForge.
> Sun has been losing money for years?
was this one of your previous arguments? I think not.
Sun has 35,000 employees, has about $7 BILLION in short term assets,
and makes about 11 BILLION dollars a year, so it's not eaxctly in any
danger of folding.
Analysts have long told Sun to lay off lots of people after the dotcoms
exploded, but Sun, unlike some other companies for whom the bottom line
is only profits, refused to do that. In a way, this is stupid, but in
another sense I like the fact they stood by their employees while some
other companies so easily treat them like disposable cogs.
This year, analysts are giving sun stock a thumbs up because the
thought that sun would finally restructure strongly and return to
profitability, but the new CEO seems to again be resisting this.
> That a java jar file, is not by default, double clickable?
Actually, in smaller devices, jar files are automatically installed and
run. I have no idea why it's not so in PCs, but then again i'm not as
stupid as you that i need to have everything clickable. Perhaps you
should go back to the windows world?
|
| |
|
| |
 |
arachnid

|
Posted: 2006-5-2 11:42:00 |
Top |
java-programmer >> Why Linux + Java
On Mon, 01 May 2006 14:56:30 GMT, "Oliver Wong" <email***@***.com>
wrote:
>
>"arachnid" <email***@***.com> wrote in message
>news:email***@***.com...
>> On 28 Apr 2006 09:45:01 -0700, "L Leed" <email***@***.com> wrote:
>>
>>>arachnid wrote:
>>>> I said it was unavailable for nearly a year, not that it's unavailable
>>>> now. Backporting it a year too late doesn't send me back in a time
>>>
>>>BS. It was an honest mistake (On Sun's part) that was corrected almost
>>>immediately.
>>
>> A year without a JVM is not "immediately".
>
> According to the comments posted along side the Slashdot article linked
>to earlier in this thread, the mistake was corrected before the article
>appeared on Slashdot. That's pretty darn close to "immediately", IMHO.
That's strange, because I tried again and again for almost a year and
was still unable to get it. There seemed to be an unwillingness to
admit there was a problem. Both FreeBSD.org and freebsdfoundation.org
continued to advertise that Java was available for FreeBSD, but
clicking the links only got me a message saying that negotiations were
still in progress.
Some people were able to get the Linux JVM working under FreeBSD's
linux compatability layer, but it didn't work for everyone and it
didn't work for me. I spent several days beating my head on that one
before giving up. :o(
I'll dig around tommorow and see if I can find anything to back me up.
Right now it's time for bed.
>
> - Oliver
|
| |
|
| |
 |
Mishagam

|
Posted: 2006-5-2 11:48:00 |
Top |
java-programmer >> Why Linux + Java
tab wrote:
>> Other than that how is it different from installing any other program?
>
> Are you for real? Have a user install java and then verify
> at www.java.com. Make sure the new version, verifies.
>
> Don't forget, Java does not auto update from sun, but if you
> are VERY lucky, your distro will.
I think Java is auto updated from SUN on Windows. jusched.exe process is
present on my system (and this process auto updates Java).
>
> And a jar file is not doubleclickable.
>
Jar file can be doubleclickable on Windows.
|
| |
|
| |
 |
asj

|
Posted: 2006-5-2 12:16:00 |
Top |
java-programmer >> Why Linux + Java
Mishagam wrote:
> I think Java is auto updated from SUN on Windows. jusched.exe process is
> present on my system (and this process auto updates Java).
it is. my 1.42 keeps popping up a dialog every so often telling me
there's an update.
> > And a jar file is not doubleclickable.
> >
> Jar file can be doubleclickable on Windows.
you learn something new everyday.
|
| |
|
| |
 |
The Ghost In The Machine

|
Posted: 2006-5-2 13:00:00 |
Top |
java-programmer >> Why Linux + Java
In comp.lang.java.advocacy, Mishagam
<email***@***.com>
wrote
on Tue, 02 May 2006 03:47:58 GMT
<ODA5g.7157$email***@***.com>:
> tab wrote:
>>> Other than that how is it different from installing any other program?
>>
>> Are you for real? Have a user install java and then verify
>> at www.java.com. Make sure the new version, verifies.
>>
>> Don't forget, Java does not auto update from sun, but if you
>> are VERY lucky, your distro will.
>
> I think Java is auto updated from SUN on Windows. jusched.exe process is
> present on my system (and this process auto updates Java).
It can.
>
>>
>> And a jar file is not doubleclickable.
>>
> Jar file can be doubleclickable on Windows.
This is verging on silly. If one wants a double-clickable app,
one can write a small shell script:
#!/bin/sh
java -jar SwingTest.jar
or
java -classpath SwingTest.jar com.something.SwingTest.Main
if one doesn't like mucking about with META-INF/MANIFEST.MF
for some reason, and doubleclick *that*. There's more
important things here than autorecognition of Java .JAR
files by an OS/desktop (or a desktop component, which in
my case is nautilus).
On Windows, a .BAT or .WSH file serves much the same purpose.
I don't know about auto-updating on Linux, and in any even
Java releases don't come that frequently.
Linux does have a foreign-app registration process, though, which
allows auto-recognition of .JAR files, passing them to a
shell interpreter. In this case, I'm not sure what that would be.
Bear also in mind that a Java application may require a
lot of .jar files, usually libraries such as Xerces, Xalan,
and Castor. While Java does have a Class-Path: directive
in the MANIFEST.MF file, I don't know how well it works.
This makes .jar files roughly equivalent to .o or .obj files,
with the added capability that one might be able to run them
standalone.
I've seen this before -- DomainOS/Aegis had a similar capability.
--
#191, email***@***.com
Windows Vista. Because it's time to refresh your hardware. Trust us.
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Regex GroupsHi,
I have a question concerning the behavior of regular expressions in Java. I
have a text: "text-123-234-535-235"
I use a regular expression to get the text: "text(-[0-9]*)*".
The problem is that I don't how many number blocks there will be. It can one
or twenty. Java only delivers me the last matched block as group. How can I
get all?
I can't use String.split because the regex is configued in a config file and
the regex can change as can the text. So the Java code needs to be flexible
what to do.
Is there any way to do this?
Thanks,
Andreas
- 2
- Short question about JSliderHi,
I have a problem with the font of JSlider labels.
This code compiles but does not work and I am wondering how I can set
the label font :
JSlider s = new JSlider(JSlider.HORIZONTAL,min,max,value);
Font f = new Font("Monaco", Font.PLAIN,9);
s.setFont(f);
...
Thanks for your help and suggestions
- 3
- TCP Keep Alive probesHi All,
I have a java client app and want to send TCP Keep Alive probes to my
server every 10 minutes as opposed to the default 2 hours. I see a
setKeepAlive() call in the API, but that only turns on whether you want
to send Keep Alives or not. How do i specify the Keep Alive probe
interval?
Thanks,
Grant.
- 4
- What Says The Blame America First Crowd?In comp.lang.java.advocacy, Luke Tulkas
<email***@***.com>
wrote
on Wed, 31 Mar 2004 15:36:37 +0200
<c4ehh5$2gef62$email***@***.com>:
> "Phil Earnhardt" <email***@***.com> wrote in message
> news:email***@***.com...
>
>> >> 7. You acted (and are still acting) dumb.
>> >
>> >No, wait, you _are_ dumb.
>>
>> You continue to paint a caricature of the Far Left
>
> Far Left? Whatsthat?
Presumably anyone who thinks that Rush Limbaugh is not The Voice Of God. :-)
Although in all fairness he more likely was referring
to those individuals who think, among other things, that
socialism/communism cures all ills, admires/admired Mao
Zedong and Lenin (*not* Stalin, who corrupted the notion),
and thinks that $100M/yr CEOs are obscenely overpaid.
(I've wondered, though: in a communistic economy, why would there
be any need of money at all, except for dealing with the other
countries? The existence of the ruble appeared to be a kludge;
of course now that Russia's capitalist, it's a moot point.
Not sure regarding the CEOs; I'd have to look. I wouldn't mind
$100M a year but I'm not a CEO...and I know which system works
better. If it's not obvious, look at N Korea and S Korea, and
then tell me which one's starving :-) . The weird bit is, the
US Prez only gets about *$400K*....)
>
>> that is very
>> unattractive: someone who fervently holds on to their beliefs but
>> demonstrates time and time again that they really have no idea what
>> they're talking about.
>>
>> This posting demonstrates another attribute of that charicature:
>> rather than debating the points that I made, you instead resort to ad
>> hominom attacks.
>
> Sometimes a man's gotta do what a man's gotta do. In this case, face you
> with hard facts about your sanity. No use trying to have a serious
> conversation if all you do is demonstrating your repeat-copy-paste
> skills. On top of your countless brainfarts.
>
>> Luke: you're demonstrating the fundamental irony of the Political
>> Correctness movement.
>
> Me politically correct? You must be confusing me with somebody else.
>
> [snip]
>
--
#191, email***@***.com
It's still legal to go .sigless.
- 5
- java/115558: linux-sun-jdk-1.6.0.02 is incorrectly marked as
>Number: 115558
>Category: java
>Synopsis: linux-sun-jdk-1.6.0.02 is incorrectly marked as vulnerable
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-java
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Aug 15 18:20:00 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Ronald Klop
>Release: FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD 6.2-STABLE #29: Sat Jul 14 14:44:18 CEST 2007
email***@***.com:/usr/obj/usr/src/sys/GUIDO
>Description:
I don't know if this is a 'java' issue or a 'ports' issue, sorry if the category is wrong.
But, the port linux-sun-jdk-1.6.0.02 is marked as vulnerable by portaudit/vuxml which is incorrect I think.
# portaudit -adF
auditfile.tbz 100% of 43 kB 30 kBps
New database installed.
Database created: Tue Aug 14 01:10:01 CEST 2007
Affected package: linux-sun-jdk-1.6.0.02
Type of problem: jdk -- jar directory traversal .
Reference: <http://www.FreeBSD.org/ports/portaudit/18e5428f-ae7c-11d9-837d-000e0c2e438a.html>
>How-To-Repeat:
install portaudit
try to install linux-sun-jdk-1.6.0; this will not succeed, because portaudit thinks the port is vulnerable
>Fix:
Fix the versions of the vulnerability.
>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
- 6
- Applet Canvas / Panel ProblemHello,
I have written a threaded tree control which is displayed in an
applet.
The way it works is that the reusable control is a canvas.
The control is created in an applet and the canvas is drawn onto a
panel.
Things work great when the content is static, however when the tree
structure
is changed - i.e. someone adds a folder or deletes a file problems
creep in.
I have no problem updating the tree (which is the canvas) but after
every change the new canvas needs to be placed on the panel.
I have tried
Panel.remove(tree);
Panel.add("Center", tree);
(there are three panels in total - the other two have scrollbars in
them)
But this does not appear to update when changes are made.
So I have tried
Panel.removeAll();
Panel.add("Center", tree);
Panel.add("South", horizontalScrollbar);
Panel.add("East", verticalScrollbar);
This does the update perfect however I get a flickerwhen the update
occurs.
So basically my question is in two parts?
Can anyone suggest how I can update the panel to avoid it flickering?
Or anyone suggest an alternative way of organising my tree so it
remains a generic control but has a better method of updating?
does that make sense?
Any suggestion greatfully recieved.
Regards
Lloyd
- 7
- tomcat plugin for eclipse - tomcat not startingHi,
Tomcat is not starting from eclipse ide.
my configurations are
eclipse sdk3.1.2
j2sdk1.4.2_10
tomcat5.5.15
sysdeo plugin is tomcatplugin 4.1.30.1
I have unzipped the sysdeo plugin into plugins dir of eclipse and have
done all the configuration as given in docs..but when i try to start
tomcat from start button of tomcat ...from eclipse its not getting
started..
please ,some one help me work this one out.
patrick
Error is
Error 2006-03-27 23:18:56.267 org.eclipse.core.runtime.CoreException:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
at
org.eclipse.jdt.launching.AbstractVMRunner.abort(AbstractVMRunner.java:47)
at
org.eclipse.jdt.internal.launching.StandardVMDebugger.checkErrorMessage(StandardVMDebugger.java:322)
at
org.eclipse.jdt.internal.launching.StandardVMDebugger.run(StandardVMDebugger.java:236)
at
com.sysdeo.eclipse.tomcat.VMLauncherUtility.runVM(VMLauncherUtility.java:81)
at
com.sysdeo.eclipse.tomcat.TomcatBootstrap.runTomcatBootsrap(TomcatBootstrap.java:186)
at
com.sysdeo.eclipse.tomcat.TomcatBootstrap.start(TomcatBootstrap.java:79)
at
com.sysdeo.eclipse.tomcat.actions.StartActionDelegate.run(StartActionDelegate.java:38)
at
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
at
org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:223)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:441)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3125)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Error 2006-03-27 23:18:56.257 Impossible to start Tomcat
Check home directory setup in Tomcat preference page/n
- 8
- freebsd eclipse plugins & mailing listVizion wrote:
> On Thursday 25 August 2005 18:41, the author David Wolfskill contributed to
> the dialogue on-
> Re: freebsd eclipse plugins & mailing list:
>
>
>>[Sorry about cluttering a technical list with administrivia, but it
>>seemed appropriate under the current circumstances. -- postmaster]
>>
>>On Thu, Aug 25, 2005 at 04:00:10PM -0700, Vizion wrote:
>>
>>>...
>>>
>>>
>>>>>Personally I would be in favor of also creating a
>>>>>email***@***.com mailing list but I am not certain how much
>>>>>interest there might be. If there is enough support I would be willing
>>>>>to help set it up.
>>>>
>>>>You may be willing to help set it up, but only the FreeBSD postmaster(s)
>>>>can actually do so :). I personally don't see enough interest for a
>>>>separate mailing list,
>>>
>>>How can we find if there is enough interest without creating the list?
>>>Eclipse is now a very serious EDI which is suitable for all kinds of
>>>development. Frankly I am dissappointed that freebsd has not been more
>>>active in the eclipse field. The lack of plugin support in the ports tree
>>>is a major deterent.
>>
>>Regardless of the structure of the ports tree or anything else, my basic
>>criterion for new list creation is this: Would creation of the new list
>>help the FreeBSD project more than retaining the status quo would?
>
>
> Well I think definitely yes. If you need any proof of its significance for
> developers of any project I would suggest you take a look at the eclipse site
> www.eclipse.org and at the links from that site. As to helping the freebsd
> project a search through the eclipse website on Linux will tell you how much
> support that community has gained through their involvement of a core of
> linux deveopers in the eclipse community.
>
>
>>If the answer is yes, then I am strongly in favor of cretaing it -- to
>>the point that unless someone in core@ or admin@ tells me not to, I
>>will create the list.
>
>
> So please will you create the list as quickly as possible and hopefully we can
> promulgate its presence on the many eclipse forums.
>
>>However, I have been so far "out of the loop" with respect to
>>"development environments" and the like ... well, no; that's not right:
>>I was never "in the loop." What "development" I do (generally in Perl)
>>is done in multiple xterm windows editing files with vi.
>
>
> You might find the eclipse edi in conjunction with the perl and php plugins
> very very usefuland a tremendous advance on using multiple xterms with vi.
> The one EDI will control all the development tasks and maintain a development
> history... very neat.
>
>>So: for folks who have an opinion -- persuade me. No, this isn't a
>>"vote;" I don't care about that. Write to me about what the presence of
>>the new list will do for the FreeBSD project ... for good or for ill.
>>Be honest about it.
>
>
> Eclipse is multi- faceted -- but is developed on a Java platform. However it
> is out of place in the Freebsd-java mailing list... every plugin needs to be
> discussed in the context of eclipse as a whole and the various plugins. The
> absense of a list means that Freebsd users are not able to benefit from the
> mutually support it can create to ensure freebsd developers are able to use
> the latest tools -- whether you develop in C of C++, or java, xul, sml, http
> php, or whatever there is an e clipse tool to help.
>
>
>>Note that I set Reply-To on purpose -- there's no
>>need to clutter FreeBSD.org technical mailing lists with opinions about
>>the creation of a mailing list.
>
>
> I have posted this to the freebsd java list but will ask anyone who joins in
> to delete that from the cc list and add their name to the cc list
>
>>Chances are, I'll create the list --
>
>
> please do
>
>>I recently created one dedicated to
>>the Proliant line of hardware (of all things). So if you can convince
>>me that Eclipse has a following at least comparable to Proliant
>>hardware, you're probably golden. Remember, the salient criterion is
>>"Overall, does creation of the new list help the FreeBSD project?"
>>
>>
>>>I know a number of developers who have moved from freebsd to linux just
>>>because freebsd has not kept up with this very powerful EDI.
>>>Who should I email to request a new list? ( I have cc'd
>>>email***@***.com )
>>
>>I noticed. :-}
>>
>>
>>>If there is no hope then I suppose I could start an independent mail list
>>>- but that idea goes against the grain!
>>
>>Right. I appreciate your restraint.
>>
>>
>>>....
>>>
>>>--
>>>40 yrs navigating and computing in blue waters.
>>>English Owner & Captain of British Registered 60' bluewater Ketch S/V
>>>Taurus. Currently in San Diego, CA. Sailing bound for Europe via Panama
>>>Canal after completing engineroom refit.
>>
>>Heh. Sorry about the need for the refit, but I've tended to have a bit
>>of a "soft spot" for ketches. Not that I've actually sailed one,
>>unfortunately.
>
>
> Ah well if you are near San Diego in a couple of months (when the engine is
> done, I'll be glad to welcome you aboard
>
> David
I understand and sympathize with what you are trying to achieve, but I
believe you are barking on the wrong tree here. Eclipse on FreeBSD has
been in a rather good shape for at least the last two years that I have
been using it:
- The IDE port gets updated a few days or weeks after the official release.
- The various milestone releases from the development version are
usually ported as well.
- Many different plugins exist in the ports tree for Eclipse.
I also believe that people do get help when posting to freebsd-java
about eclipse and I'll make sure the same thing happens on
freebsd-ports. There are some things that could be improved however, like:
- Faster response to open PRs.
- More people working on porting the platform or the plugins.
- Official support from the eclipse.org site.
The first two are not going to be improved by a new mailing list, since
a mailing list by itself does not spark new interest on a topic. I'm
afraid that they may be harmed instead, since there might not be many
(or any at all) subscribers to that list that are also ports committers.
The way things usually work in FreeBSD-land for contributors without a
commit bit, is that you submit an improvement, try to get the attention
of a committer and then work with him through any details. The committer
attention is not something you get very easily, especially if you
consider how many lists these people are usually subscribed to.
Don't get me wrong, I will subscribe if such a list is created, but I
fail to see the need for it. Check out the archives of freebsd-apache,
freebsd-rc, freebsd-python and freebsd-perl for examples on the nature
and the amount of postings I expect we will get. Do we need a new list
for such an amount of e-mails?
Regards,
Panagiotis
- 9
- right click menu not highlightingIm working with a jtree and I have added the jpopupmenu to the jtree
object.
When I right click a node the menu comes up appropriately, it even
accepts clicks and performs the appropriate action. The only thing
that isnt working is the right menu highlighting when I have the mouse
over the menu items...
Im wondering if there is some place in my code where I perhaps overrode
some code that would typically be responsible for highlighting the
right click menu... I implemented a little drag and drop functionality
for the jtree, could this be messing with the highlighting of the menu?
Thanks
- 10
- 08 new chanel d &g dior tous prada gucci lv versace fendi sandals stylewww.efootjoy.com wholesale Michael jordans shoes fusion force shoes
wholesale jordan shoes air force ones dunks, sandals, glasses, puma
air max 87 89 90 95 ltd timberland jeans ugg boots lacoste sandals
hoodies,
t-shirts, mauri shoes, dsquared , hogan shoes, dunks , red monkey,
polo t-shirts,
evisu jeans, bbc jeans , dior, lv, dg, versace, coach puma shoes, nfl
jerseys
shox r2 r3 r4 r5 r6 tn tl1 tl3, sandals, nhl jerseys, mlb jerseys,
nba
jerseys
probowl jerseys,prada shoes,kobe james, hockey jerseys, nfl jerseys,
football
jerseys, baseball jerseys, jordan shoes, jordan fusion air force ones
25 years at www.efootjoy.com
basketball jerseys Men's women's shocks OZ NZ TL shoes Discount
Coach
Sandals,
Dior Sandals, Prada Sandals, Chanel Sandals, Versace Sandals, Crocs
Sandals,
Women's Sandals Men's Slippers From China jordan shoes, jordan fusion
air force ones
Affliction T-shirts lacoste T-shirts Polo T-shirts Brand ShirtsGGG T-
shirts Designer
T-Shirts Helen Coat burberry coat Jacket Juicy Couture bbc hoodies
bape hoodies at:www.efootjoy.com Designer
Hoodies NFL NHL NBA MLB Jersey throwback jersey ,super bowl
jersey ,pro bowl jersey,boy
jersey,discounted jersey,customize jersey authentic jersey,
jersey,stitched jersey,reebok
jerseys,football jerey,basketball jersey,youth jersey,adult
jerseys,kids jersey, hockey
jersey,Mitchell Ness jersey,custom football jersey,allstar
jersey,official jersey ,
classics jersey , retired jersey ,autographejersey, lady
jersey ,baby jersey,vintage
jersey,throw back jersey,womens jersey at:www.efootjoy.com
- 11
- Most Java apps are flawed on my systemI'm using a couple of free Java applications that easiliy outperform free native windows application. I'm very upset that those Java application share a common set of problems on Windows due to bugs in the Java libs and the authors are not willing to investigate and work around the problems. If I were a Java programmer I would probably send some patches to the authors or at least point to some resources but unfortunately I'm not a Java programmer. The reason why I post here is I hope to find some resources like code exmples that I can forward to the authors to work around the bugs. First issue is the Java applications save their settings in the root directory of my D partition.
D:\.entagged
D:\.LimeWire
D:\.Phex
Pretty much all Java apps got this all wrong because people get very upset if applications trash their system while they are supposed to write either xcopy style (windows power users prefer unanimously xcopy apps according to a poll I made because of the ultimate simplicity and transparency) to the startup dir where the application is located or to the user context as defined in Microsoft's design guidelines which would be 'C:\Dokumente und Einstellungen\Frank\Anwendungsdaten\' on my system and would translate to 'C:\Documents and Settings\Frank\Application data\'. Please note that the windows explorer wouldn't even allow to create a dir with preceding dot manually and no Windows user would want to use a name with esoteric characters, abreviations or casing. I've summarized the technical reasons for the problem here:
http://www.gnutellaforums.com/showthread.php?s=b443bdda9ec96e6db7a54aed0858e8f9&threadid=44579
The second problem is that strings like "ain't" are saved as "ain-t" in filenames, this is unacceptable for a MP3 tagger and for any other reasonable application, on top of that there are casing problems as well. Nobody is willing to work around these bugs, it appears they stop to read my crys for help as soon as they read Windows, am very disappointed about Java, I got a couple of GTK+, QT, wxWindows and XUL apps working here on Windows starting rocket fast, looking beautifully and working amazingly well, some of 'em much better than most native apps.
It's OK when a crossplatform app is a little out of the norm, I close the application and it's all good but messing with my files, folders and system is something I find very annoying.
Regards,
stax
- 12
- MessageBoxHi,
Call me stupid but where can I find the messagebox in Java?? Or do I have to
create one myself? What I need is a simple function just like Alert( "I'm
annoying!" ); in JavaScript.
Greetings,
Rick
- 13
- Getting HTML title using HTMLEditorKit.ParserCallbackI am parsing an HTML file using ParseDelegator and a ParserCallback. I am
trying to get the document title and the HREF links. The ParserCallback is
successfully getting the HREF, so I know it is basically working. However,
when I try to get the title, I always get back null. Here is the relevant
code of the ParserCallback subclass. Anyone have any clue as to what I'm
doing wrong?
public void handleStartTag(HTML.Tag tag,
MutableAttributeSet attrSet, int pos)
{
if (tag == HTML.Tag.TITLE)
{
urlTitle = (String)attrSet.getAttribute(HTML.Attribute.TITLE);
System.out.println("attrSet: " + attrSet); // prints ""
System.out.println("found title: " + urlTitle); // prints null
}
if (tag == HTML.Tag.A)
{
// This successfully gets the target URL
String targetURLStr =
(String)attrSet.getAttribute(HTML.Attribute.HREF);
}
}
--
Bill Tschumy
Otherwise -- Austin, TX
http://www.otherwise.com
- 14
- Java and JSP to MySQL databaseDear all,
I am planning to build my web application with the following
architecture:
Redhat Linux 9.0 platform
Apache Tomcat Web Server
MySQL database
JSP with Java for writing the web page
But unfortunately, I encountered some problems in properly linking my
JSP to the mysql database. I have installed the JDBC connector
interface already.
I would apperciate if anyone can give me some hints on the proper set
up and configuring of the architecture.
Thanks a lot.
Ivan
- 15
- Threads not running in starting order (?)Hi!
Below I do start Thread t1 before t2. t1 tries to call print1() on a
Printer object and t1 print2() but only the first will success since it
obtains a lock on the Printer object. I'm surprised that although t1 is
started first the code prints "2". If I put a sleep(5) between the
starting of the threads t1 wins the race.
Can somebody explain?
public class SyncThreadTest
{
public static void main( String[] args )
{
new SyncThreadTest().go();
}
private void go()
{
Thread t1 = new Thread( new Runner( 1 ) );
Thread t2 = new Thread( new Runner( 2 ) );
System.out.println(t1.toString());
t1.start();
System.out.println(t2.toString());
t2.start();
}
class Runner implements Runnable
{
int i = 0;
public Runner( int i )
{
this.i = i;
}
public void run()
{
// Printer p = Printer.getInstance();
Printer p = new Printer();
// synchronized( p )
// synchronized( Printer.class )
synchronized( p.MUTEX )
{
while( true )
{
System.out.println(toString());
if( i == 1 ) p.print1();
else p.print2();
try
{
Thread.sleep( 500 );
}
catch( InterruptedException e )
{
}
}
}
}
}
}
class Printer
{
private static final Printer instance = new Printer();
public static final Object MUTEX = new Object();
public static Printer getInstance()
{
return instance;
}
public synchronized void print1()
{
System.out.println( 1 );
}
public synchronized void print2()
{
System.out.println( 2 );
}
}
|
|
|