 |
 |
Index ‹ java-programmer
|
- Previous
- 2
- jboss 4.0.3 jboss portal 2.2.1hi
i am a one week newbie to j2ee world ( no java exp )
however i am to deploy application ( that is compiere ) onto existing
platform ( pentaho that is )
as per this date my assumptions are :
= point of integration would be in portal
= compiere application itself, war, would be deployed on jboss /deploy
= jsp be made to enable access from portal to war
could somebody help me on what is the definable steps to do the
integration?
- 2
- [J2ME] UI /freezes/ after IOExceptionHi,
I have a MiDlet that starts a Thread through a Runnable, in which
there is IO activity:
Runnable runner = new Runnable() { // some IO stuff there };
Thread thd = new Thread(runner);
thd.start();
The application runs well, until I need to close the IO channels that
are opened in that separate Thread.
Of course, I catch the IOException in my Thread, and the Thread
completes properly (and dies...).
But after this catch, the UI is not responding: if I press a button the
menu will not show, and if I do some programmaticaly changes in the UI
it does not display and the call blocks (i.e. if I add an item in the
current screen, nothing happens and the next line --System.out.println--
doesn't execute).
I know the application didn't die, cause I have another Thread running a
'while' loop and printing "I am alive!" even when the UI freezes.
And also if I don't perform UI changes I can print stuff in the main Thread.
Any idea to help me ? Thank you.
--
JScoobyCed
What about a JScooby snack Shaggy ? ... Shaggy ?!
- 3
- Toward a generic Disk Sort for JavaI was thinking how you might go about writing a sort that could handle
more data than could fit in RAM. It handled the problem is Abundance
by checkpointing the app to disk to free up maximum RAM, then spawning
a copy of Opt-Tech sort. My records were roughly like DataOutputStream
would produce, so I could automatically generate the command script
sort the fields in any way I wanted.
I thought you might pull it off in Java this way.
1. You write a comparator as if you were going to sort Objects in an
ArrayList.
2. the external sort has an add method that also takes collections.
It accepts a "chunk" of records, and sorts them using Sun's sort.
Then it writes them out as SERIALISED objects in heavily buffered
stream. There may be some way to do a partial reset after each object
to speed it up.
Then you repeat collecting, sorting and writing another batch to
another file.
When you have created N files, you recycle, appending. (Optimal N to
be determined by experiment). Ideally each file would be on a
different physical drive.
Then when all the records have been added, you start merging chunks
into longer chunks, and writing out the longer chunks. Each N-way
merge cuts the number of chunks by 1/N and increases the length of the
chunks N times.
on the final merge pass does not happen until the user invokes the
Iterator to hand over the resulting records.
Another way it might be done is the records to be sorted must by byte
arrays, chunks effectively produced by DataOutputStream. You specify
offset, length and key type e.g.
int, byte, short, float, double, String.
This would require a detailed knowledge of the bit structure of the
records, the way you did in the olden days of assembler and C.
This would be clumsier to use, but would avoid the overhead of
pickling and reconstituting records on every pass.
Then of course, there is the possibility someone has already solved
this and done it well.
The universe has a sneaky habit. Problems start out small, and it
looks like a purely in RAM solution is perfectly adequate. Then they
bit by bit grow and grow and start pushing the limits of the RAM
solution. Suddenly you are faced with a major redesign.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
- 3
- set guarded blockHow I can define, modify, delete a guarded block in NetBeans?
The gaurded block is writen by me (not by IDE).
Where is documentation about writing guarded block?
--
WOJSAL
http://www.wojsal.prv.pl
- 6
- Sun Wireless Toolkit gives SecurityException - please help.I have a midlet (not written by me), and I would like to analyze how it
works. Unfortunately I am not able to run this midlet. Everything compiles
fine but I receive an runtime exception during running sun WTK emulator.
Incorrect domain name, switching to 'untrusted'
java.lang.SecurityException: untrusted domain is not configured
at com.sun.midp.security.Permissions.forDomain(+98)
at com.sun.midp.dev.DevMIDletSuitImpl.create(+39)
at com.sun.midp.dev.DevMIDletSuitImpl.create(+62)
at com.sun.midp.main.Main.runLocalClass(+20)
at com.sun.midp.main.Main.main(+116)
Exception completed.
14945 bytecodes executed
0 thread switches
738 classes in the system (including system classes)
229 dynamic objects allocated (14588 bytes)
1 garbage collections (0 bytes coolected)
I am not able to fing any solution via google. I hav e found only some not
clear instruction to delete MIDP_HOME environment variable. But I have not
any MIDP_HOME on my system.
I have also found some advices to change something in
java.security and java.policy files.
Unforunately I don't know what to change. Anyone has any idea how to fix my
problem ??
I will be appreciate for any advice. Thanks in advance.
--
RaW
Please fill free to correct my English.
- 6
- Exec() Help!Hi,
I'm trying to start an external applet from an applet I'm writing. I know
Exec() Is the key, but I don't know how to use it. I know how to execute
external native programs (I.e. programs I have written in BASIC and
compiled). But starting an applet from an applet totally throws me. I have
tried searching the net, and that has a lot to say about executing shell
scripts, and natives - which I know how to do.
What classes do I need to import? what line of code invokes an external
applet? I don't need to grab output from the applet I want to execute, or
send input. I just want it to run.
Pleeeeeeez can anyone help, my project has to be handed in soon :-(
Thanks,
Dafydd.
- 6
- JRE installation woesHi All
I have installed the latest version of Sun's JRE on my Windows XP Pro PC.
However, its "performance" is somewhere between abysmally slow and not at
all. If I e.g. open the Java Control Panel module and click on one of the
tabs, it takes over two minutes for that tab to display - this on a 3.4 GHz
dual-processor 4 GB memory PC. Java aplications run no better. It does seem
to "speed up" if I Alt-tab to another program and then Alt-tab back.
CPU load is negligible so clearly, the JRE is waiting for something that
occurs only rarely. But I have no idea where to look.
Any help will be very much appreciated.
Ebbe
- 6
- AbstractTableModel not compatible with SwingWhat happens when AbstractTableModel is no longer compatible with Swing?
I kinda see how to use it, but don't see how XMLEncoder would work in its
place.
"Warning: Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is appropriate
for short term storage or RMI between applications running the same
version of Swing. As of 1.4, support for long term storage of all
JavaBeansTM has been added to the java.beans package. Please see
XMLEncoder. "
http://java.sun.com/javase/6/docs/api/javax/swing/table/
AbstractTableModel.html
thanks,
Thufir
- 6
- Convert from text string "Hello" to floating-point number issueHi there,
My java lecturer has given us an assignment related to casting and
type conversion etc.
One of the conversions he wan't is convert "Hello" to a float.
I suspect this is a trick question on his part as "Hello" is not a
parsible value.
This is the code I have:
//Convert String object "s" to a Float object
//then convert Float object to float value
try { System.out.println("String is "+s+" float is
"+Float.valueOf(s).floatValue());
}
catch (NumberFormatException NFE)
{ System.out.println("NumberFormatException: "+ NFE.getMessage()+
" The input string does not contain a parsable number"); }
I emailed the guy but he says just to use your own judgement.
I looked at the API for the wrapper classes etc and I think a
conversion of this type is almost impossible.
Any ideas welcome.
- 10
- J2MEHello,
Are there any newsgroups or forums specifically for J2ME? I would like to
make a game for mobile devices but I don't know where to start.
Thanks in advance,
Steve
- 11
- Formatting a string in JavaHi
I am a newby in Java and am trying to format a string into a fixed
number of positions( in this case 5).
So if I have a "5" in should be "00005", and "23" should be "00023".
I hav tried looking at the classes 'import java.text.NumberFormat' and
'import java.text.Format', but I didn't get far.
Can anyone help me how I can do this in java?
Any help will be appreciated.
Regards
- 12
- Vmx Smalltalk for JavaA Beta version of Vmx Smalltalk for Java is now available for download.
http://vmx-net.com/downloads/downloadjvm.php
Your comments are welcome,
email***@***.com
- 14
- 14
- Bug in java.net.Socket close() behavior?According to the API for java.net.Socket close():
"Any thread currently blocked in an I/O operation upon this socket
will throw a SocketException."
http://java.sun.com/j2se/1.5.0/docs/api/java/net/Socket.html#close()
I have observed that java 1.5 on FreeBSD does not follow this while
the Windows and Linux ones I have tested do. On the FreeBSD runtimes
that I have tested, a thread blocked on reading a socket just hangs
forever if the socket is closed.
Attached is a simple program that tests this behavior. It just
connects to a port on one of my servers and has a reader thread
watching input from the socket and closes the socket in a different
thread to see if the reader thread gets an exception.
Java runtimes that I have tested this on:
# java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build diablo-1.5.0-b01)
Java HotSpot(TM) 64-Bit Server VM (build diablo-1.5.0_07-b01, mixed mode)
# java -version
java version "1.5.0-p2"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0-p2-root_07_mar_2006_02_41)
Java HotSpot(TM) 64-Bit Server VM (build
1.5.0-p2-root_07_mar_2006_02_41, mixed mode)
- 16
- Generics and returning specific subclass from methodI have an abstract class called say Base and two subclasses, say Sub1 and
Sub2. Let me define a method in Super which I want to return a new instance
of the superclass itself but I want to access this without having to cast.
IE,
public class Super {
public <E extends Super> E partialCopy() {
return this; // return this for example
}
}
public class Sub1 extends Super { }
Then I want to do this without the cast.
Sub1 s1 = new Sub1();
Sub2 s2 = s1.partialCopy();
Can I do this with generics ?
|
| Author |
Message |
Roedy Green

|
Posted: 2005-7-17 4:56:00 |
Top |
java-programmer, In praise of Eclipse
On Sat, 16 Jul 2005 20:02:41 GMT, Dale King
<email***@***.com> wrote or quoted :
>As I said, you are actually not pointing to anything because the site
>doesn't exist, Rumsfeld explained nothing, and last I checked even if he
>had he is not a member of the Bush family.
The link has gone stale. The site itself still exists. Last time I
looked, a month or so ago it showed you a C-SPAN video of McKinney
going after Rumsfeld.
I spent 20 minutes unsuccessfully last night trying to find a new
source for it.
For more details on the loss/embezzlements see
http://mindprod.com/politics/iraqeconomics.html
This is not the forum to discuss. Try alt.politics.bush
--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm
Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
|
| |
|
| |
 |
Roedy Green

|
Posted: 2005-7-17 4:56:00 |
Top |
java-programmer >> In praise of Eclipse
On Sat, 16 Jul 2005 20:02:41 GMT, Dale King
<email***@***.com> wrote or quoted :
>As I said, you are actually not pointing to anything because the site
>doesn't exist, Rumsfeld explained nothing, and last I checked even if he
>had he is not a member of the Bush family.
The link has gone stale. The site itself still exists. Last time I
looked, a month or so ago it showed you a C-SPAN video of McKinney
going after Rumsfeld.
I spent 20 minutes unsuccessfully last night trying to find a new
source for it.
For more details on the loss/embezzlements see
http://mindprod.com/politics/iraqeconomics.html
This is not the forum to discuss. Try alt.politics.bush
--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm
Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
|
| |
|
| |
 |
Dale King

|
Posted: 2005-7-18 10:10:00 |
Top |
java-programmer >> In praise of Eclipse
Roedy Green wrote:
> On Sat, 16 Jul 2005 20:02:41 GMT, Dale King
> <email***@***.com> wrote or quoted :
>
>
>>As I said, you are actually not pointing to anything because the site
>>doesn't exist, Rumsfeld explained nothing, and last I checked even if he
>>had he is not a member of the Bush family.
>
>
> The link has gone stale. The site itself still exists. Last time I
The site didn't seem to exist for me, but who really cares.
> looked, a month or so ago it showed you a C-SPAN video of McKinney
> going after Rumsfeld.
And the written transcript is available all over the place. Yes, I agree
that McKinney was definitely going after Rumsfeld, but there was no
confession as you claim. Accusations != confession.
> I spent 20 minutes unsuccessfully last night trying to find a new
> source for it.
>
> For more details on the loss/embezzlements see
> http://mindprod.com/politics/iraqeconomics.html
>
> This is not the forum to discuss. Try alt.politics.bush
And that is the point. I don't want to discuss it. This is not the forum
for this crap so lose the sig!
--
Dale King
|
| |
|
| |
 |
Roedy Green

|
Posted: 2005-7-18 14:21:00 |
Top |
java-programmer >> In praise of Eclipse
On Mon, 18 Jul 2005 02:10:19 GMT, Dale King
<email***@***.com> wrote or quoted :
>The site didn't seem to exist for me, but who really cares.
You were putting me down further than I deserved, hinting the site was
something I made up.
The site does exist. The link works. It is just the link there to the
C-span video now points to the wrong place.
--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm
Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
|
| |
|
| |
 |
Dale King

|
Posted: 2005-7-19 11:21:00 |
Top |
java-programmer >> In praise of Eclipse
Roedy Green wrote:
> On Mon, 18 Jul 2005 02:10:19 GMT, Dale King
> <email***@***.com> wrote or quoted :
>
>
>>The site didn't seem to exist for me, but who really cares.
>
> You were putting me down further than I deserved, hinting the site was
> something I made up.
I made no such hint. I tried going to www.infowars.com and got nothing
and still get nothing. I know the site existed at one time because it
shows up in Google.
Frankly, I was a little ticked off at you putting someone else down
telling them to follow the URL when the URL was not valid.
> The site does exist. The link works. It is just the link there to the
> C-span video now points to the wrong place.
So who cares about video. The transcript is available and it doesn't
contain what you said it does and is no way connected to Bush.
So I have disproven the claim in your sig and yet you still keep pushing
the lies.
Get it out of the group!
--
Dale King
|
| |
|
| |
 |
Roedy Green

|
Posted: 2005-7-19 12:00:00 |
Top |
java-programmer >> In praise of Eclipse
On Tue, 19 Jul 2005 03:21:08 GMT, Dale King
<email***@***.com> wrote or quoted :
>
>Frankly, I was a little ticked off at you putting someone else down
>telling them to follow the URL when the URL was not valid.
But the url works just fine for me. This implies there is some problem
with your DNS look up.
try a ping on vww.infowars.com. You should get
67.19.213.18
Perhaps some big brother is blocking you.
--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm
Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
|
| |
|
| |
 |
Dale King

|
Posted: 2005-7-20 8:54:00 |
Top |
java-programmer >> In praise of Eclipse
Roedy Green wrote:
> On Tue, 19 Jul 2005 03:21:08 GMT, Dale King
> <email***@***.com> wrote or quoted :
>
>
>>Frankly, I was a little ticked off at you putting someone else down
>>telling them to follow the URL when the URL was not valid.
>
>
> But the url works just fine for me. This implies there is some problem
> with your DNS look up.
>
> try a ping on vww.infowars.com. You should get
> 67.19.213.18
>
> Perhaps some big brother is blocking you.
And the existence of infowars is immaterial. You are bombarding this
group with off-topic smears and lies. Please stop it!
--
Dale King
|
| |
|
| |
 |
Roedy Green

|
Posted: 2005-7-22 6:12:00 |
Top |
java-programmer >> In praise of Eclipse
On Wed, 20 Jul 2005 00:54:13 GMT, Dale King
<email***@***.com> wrote or quoted :
>
>And the existence of infowars is immaterial. You are bombarding this
>group with off-topic smears and lies. Please stop it!
It's just a tag line. You are the one wanting to off-topic discuss it
here. See my blog at http://mindprod.com/politcs/iraq.html or
alt.politics.bush if you wish to discuss it.
--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm
Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
|
| |
|
| |
 |
Dale King

|
Posted: 2005-7-22 12:33:00 |
Top |
java-programmer >> In praise of Eclipse
Roedy Green wrote:
> On Wed, 20 Jul 2005 00:54:13 GMT, Dale King
> <email***@***.com> wrote or quoted :
>
>>And the existence of infowars is immaterial. You are bombarding this
>>group with off-topic smears and lies. Please stop it!
>
> It's just a tag line. You are the one wanting to off-topic discuss it
> here.
Since you keep posting it here you are discussing it many times a day.
> See my blog at http://mindprod.com/politcs/iraq.html or
> alt.politics.bush if you wish to discuss it.
I don't want to discuss it. I don't want anyone to discuss it in this
group, because it is off-topic and doesn't belong here. But since you
won't listen to reason and keep it out of this group because it is
off-topic and is only going to cause harm to the group, then I have
resorted to showing how they are nothing but viscous smears with no
basis in reality.
Once again this has nothing to do with Java so why do you keep
bombarding the group with this crap? Take it somewhere else!
--
Dale King
|
| |
|
| |
 |
Alan Krueger

|
Posted: 2005-7-23 11:38:00 |
Top |
java-programmer >> In praise of Eclipse
Dale King wrote:
> Once again this has nothing to do with Java so why do you keep
> bombarding the group with this crap? Take it somewhere else!
Curiously, neither does this.
|
| |
|
| |
 |
Dale King

|
Posted: 2005-7-23 13:12:00 |
Top |
java-programmer >> In praise of Eclipse
Alan Krueger wrote:
> Dale King wrote:
>
>> Once again this has nothing to do with Java so why do you keep
>> bombarding the group with this crap? Take it somewhere else!
>
> Curiously, neither does this.
No it doesn't have anything to do with Java, but has everything to do
with the health of the group itself and thus *is* relevant to the group.
--
Dale King
|
| |
|
| |
 |
Aquila Deus

|
Posted: 2005-7-23 14:10:00 |
Top |
java-programmer >> In praise of Eclipse
Roedy Green wrote:
> I made a number of tentative pokes at Eclipse before hanging in there
> long enough to want to switch over.
>
> It is not nearly as complicated as you might first think.
>
> The biggest problem is knowing what they mean by a workspace, and
> project, and a perspective. They sound grand and mysterious,but
> simple as could be.
>
> a workspace is simple the aggregate of all the source and class files
> in a one directory tree.
>
> It consists of several projects, each with many packages, each with
> many classes.
>
> The key is understanding that a project is not the same as a package
> as you may be used to thinking
>
> Eclipse has all kinds of optional windows, called views, you can bring
> up or dismiss. One of my favourites is the package explorer that lets
> you find any method or variable in any class in any package.
>
> A "perspective" then is just a convenient combination of windows/views
> -- a layout so that you can quickly bring up a convenient set for
> editing, debugging, running or any other task.
>
> Whomever assigned the keystrokes never used Windows. None of them map
> by default to the usual Windows places, not even F3. However, that
> all can be rectified with patience.
>
> It is a whole different style of working where you hand over more and
> more editing and fixing to Eclipse. Coming back it feels as if my Text
> editor is lazy or asleep.
>
> I make great use of the format and method reordering to keep programs
> tidy rather than for example taking effort to insert a new variable or
> method where it logically belongs. Just stick it at the end or right
> next the method you are working on, then let Eclipse clean it up.
>
> Don't waste keystrokes fiddling with the stars or spacing, or line
> length in comments. Eclipse will clean it all up.
>
> Use the global rename to get the names of thing absolutely perfect to
> avoid ambiguities. When the code is about done you can use longer
> names that will bake the code clearer for maintenance.
>
> I have never used a debugger that so seamlessly integrated. It points
> you to the exact place in the code every time. It does not ignore
> some breakpoints, or refuse to divulge the values of some variables
> when you hit a breakpoint. It knows the types of everything.
>
> The place that give me the biggest hassle is jar building. Eclipse
> can't seem to build a decent jar so I export and do it the old
> fashioned way. However all my pent-up class renaming, splitting, and
> moving around that I do drives that process nuts. My lists of what to
> include in the jars are always badly out of date.
>
> I have despised ant as a lot of fuss to do what you could more easily
> do with a simple bat file, but I guess I will have to learn it
> properly to use genjar.
>
>
> The bottom line, give Eclipse a try, and stick with it for a few days.
> It really is far far simpler than it first looks. This is so much
> faster than the old text editor way of writing code.
>
uh, how can I select a region surrounded by "(" and ")" in eclipse??
|
| |
|
| |
 |
bcd

|
Posted: 2005-7-26 0:31:00 |
Top |
java-programmer >> In praise of Eclipse
In article <AF_De.194413$xm3.190646@attbi_s21>,
Dale King <email***@***.com> wrote:
>resorted to showing how they are nothing but viscous smears with no
>basis in reality.
Well, you know, the more viscous the smears are, the longer it will
take to wash them off ...
Cheers
Bent D
--
Bent Dalager - email***@***.com - http://www.pvv.org/~bcd
powered by emacs
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Bye Bye Toshiba: Samsung Ships the First Blu-Ray Playeremail***@***.com wrote:
> $1000 versus $500. You really think Toshiba will tank? You don't know
> much
about consumers.
considering these are targeted towards early adopters and the well-off,
and considering blu-ray has significantly greater storage, content, and
other capabilitles - uh, yes toshiba is in trouble. sales of toshiba
hddvd titles are already slow....
- 2
- Question: getting a real path from a mapped drive.My question:
If I have a mapped driver letter g: that referes to
\\servername\d\foldername
How do I get java to convert it from g: to the real path so I can use
it?
I have a script that allows someone to locate a file on the server,
but most will use there mapped drives as they know nothing better.
Although I've tried to standardize the drives, its difficult to
maintain all the time with so many users. So, when they find their
file on the network g:\thisFolder\thisFile.txt...I want the script to
convert it to \\servername\d\foldername\thisFolder\thisFile.txt. Any
help would be greatly appreciated. Thanks!!!
- 3
- applet signingHey
I'm attempting to sign some applets that will step outside the sandbox by
means of opening a network connection. What I want to know is there anyway
of creating a certificate instead of buying one from a "trusted authorithy"
even if its just for testing. and does anyone know if its difficult/time
consumeing to sign applets?
Thanking you niall
- 4
- Maven2 repository for GlassfishIs anybody know the location of a maven2 repository for Glassfish? I
mean groupId, artifactId and url for javaee and appserv-rt libs (and
maybe another libs)...
- 5
- J2ME Server on a PCI have a question about J2ME using bluetooth. I am trying to implement
a client server applicatin between my phone (Nokia 6630) and my PC. I
can send data over bluetooth to the PC on a virtual serial port but I
need a way to "catch" the data I sent on the PC end and turn it back
into an image. Are there any applications out there that do this
already? Can I run a J2ME server on my PC? Thanks
Mike
- 6
- Expanding on Video Formats
I'm wondering if somebody with java knowledge will be able answer my
question.
Would it be within the realms of possibility to create a web-based
video editing suite? (Which media format -- Windows, Quicktime, etc. --
might best lend itself to such a task?)
Also, I imagine that this application may require a desaturation
process to bring down the memory size for the raw footage.
I don't know enough about java programming to even guess about this;
but with the current prevalence of digital editing software, an online
version has convenience written all over it.
Thanks,
- 7
- Java and Windows InteractionDoes anyone know a way using Java to find the username of the person
currently logged into Windows? I have thought that I could access the
Windows registry to find the current user, but unfortunately I can't see a
way to access and read the registry. I've had a dig through JavaDocs and the
web but haven't been able to find anything I can use.
I have found, but do not want to use, commercial classes and code. If
someone could just point me in the right direction it would be most
appreciated.
Thanks..
Adam.
- 8
- Eclipse doesn't behave like built-in help says...Hi,
I'm a Java command line programmer.
I started step-by-step with the tutorial in the built-in help, Europa
release.
>From the Content view:
Workbench User Guide ->Getting started -> Basic Tutorial -> Task and
markers -> Associated Task.
All goes fine until point 7.
It says:
[...]
5. After the new task has been added, click in the editor on the first
line or any other line above the line with which the new task is
associated.
6. Add several lines of text to the file at this point.
7. Notice that as lines of text are added above it, the task marker
moves down in the marker bar in order to remain with the associated
line in the file. The line number in the Tasks view is updated when
the file is saved.
[...]
Actually task marker in the marker bar disappeared, and the line
number in the task view never update...
Now I'm thinking what will happen with brakpoints or something else in
debugging...
- 9
- Show a bean property in jsf....it's so difficult?????Hi....
i'm a simple problem but i don't found a working solution....
I have a jsf application and i have to show a bean value into a jsp
page.
I show you my passes...please correct me where i go wrong,,,
For the first i declare property in backing bean
private String[] arraylinee;
In my application an user clicks a button, the application calls bean's
method and creates this array of string,that's what i want to show in
my jsp page.
I've developed in my backing bean getter and setter methods..
public String[] getarraylinee(){
return arraylinee;
}
public void setarraylinee(String[] arraylinee){
this.arraylinee=arraylinee;
}
1a Question)
It's not needed that bean return property?
That is...my bean's method is
public String retrieveblob()throws
IOException,SQLException,NullPointerException{
Database2 db2 = new Database2("nomeDB","root","shevagol");
if (db2.connetti())
k=1;
else k=0;
//try{
Connection dbo=db2.getConnection();
Statement st = null;
try {
st = dbo.createStatement();
}
catch (NullPointerException exc) {
exc.printStackTrace();
}
ResultSet rs = null;
try {
rs = st.executeQuery("SELECT Data FROM tbl WHERE nome='1' ");
}
catch (NullPointerException exc) {
exc.printStackTrace();
}
try {
rs.first();
}
catch (NullPointerException exc) {
exc.printStackTrace();
}
try {
Blob blob = rs.getBlob("Data");
byte[] read = blob.getBytes(1, (int) blob.length());
st.close();
String lettura=new String(read);
String[] arraylinee=lettura.split(";");
}
catch (NullPointerException exc) {
exc.printStackTrace();
}
return "Result";
}
Result is a string useful for navigation...
Let's go to jsp page
codice:<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"
prefix="c" %>
<jsp:useBean id="myBean" class="giu.MyBean" scope="session"/>
<%@ page import="giu.MyBean" %>
<%-- Instantiate class --%>
<html>
<head>
<title></title>
</head>
<body>
<f:view>
<f:verbatim>
<h:outputText value="#{MyBean.k}"/>
<table>
<c:forEach items="${session.myBean.arraylinee}" var="linea" >
<tr>
<td>
<c:out value="${linea}" />
</td>
</tr>
</c:forEach>
</table>
</f:verbatim>
</f:view>
</body>
</html>
Don't care for MyBean.k, i use it for controlling if db connection
works fine...
In summary i want this jsp page prints my array of string,one for line.
How can i do?
The bean is called MyBean and it's in the package giu.
Can you help me correcting my code directly???
Ah....with my actual application the jsp output is:
1
${linea}
- 10
- 11
- Programming ForumHello,
I wanted to let you guys know that I've created a new forum for
developers and shareware authors to discuss programming, piracy tatics
(preventing), promotion, and more. The url is
http://forum.codecall.net Please take a moment to have a look.
Thanks,
Jordan
- 12
- Apache Axis, XML document, errors aboundI just wrote a simple java program that uses a web service call from
the internet, and attempts to save it to a file.
I have run a very similar program (actually used the same code) from a
different machine, and it worked fine, though for somereason running it
now is giving me errors. I have never seen this type of message
before, so I am a bit confused.
Here is the error:<error>
Exception in thread "main" AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXParseException: Content is not allowed in
prolog.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:
org.xml.sax.SAXParseException:
Content is not allowed in prolog.
</error>
I use this almost exact same code in another program that is running on
a web server that is running fine right now, so am not sure what to do.
I have all the axis libraries and the xerces libraries in my jre ext's
folder. Below I will include the pertinent code:
I assume this is an error from axis and not from the code that I am
running, but am lost.
**Assume this is the only code used. I use other code, but it is
provided in the packages. Any suggestions?
<code>
String xmlFile;
// Needed for the web service with NOAA
WeatherParametersType typeArray;
typeArray = new WeatherParametersType();
typeArray.setMaxt(true); //works
typeArray.setMint(true); //works
typeArray.setPop12(true);
typeArray.setWspd(true);
typeArray.setWx(true); //works
typeArray.setIcons(true);
String[] argst={"here","there"};
//I assume this constructor has no bearing on anything
Options opts=new Options(argst);
NdfdXML ndfd = new NdfdXMLLocator();
opts.setDefaultURL(ndfd.getndfdXMLPortAddress());
URL serviceURL = new URL(opts.getURL());
NdfdXMLPortType info = null;
if(serviceURL!=null)
{
info = ndfd.getndfdXMLPort(serviceURL);
}
Calendar now = new GregorianCalendar();
now.add(Calendar.DAY_OF_YEAR,0);
Calendar next = new GregorianCalendar();
next.add(Calendar.DAY_OF_YEAR,+7);
//<latitude>38.84N</latitude>
//<longitude>077.03W</longitude> is for zip 20001
BigDecimal lat = new BigDecimal(38.84);
BigDecimal lon = new BigDecimal(77.03);
info.NDFDgen(lat,lon,(ProductType.value1),(now),(next),(typeArray));
</code>
I know this probably seems vague, so I will add any other code or help
needed. Thanks for the help.
J
- 13
- 14
- Sr. Systems Analyst- National Institutes of Health-JAVA and C++SR. SYSTEMS ANALYST - (Bioinformatics R&D)
Summary:
MSD is an employee-owned company of over 500 professionals who support
the diverse technical, scientific, and administrative needs of the
Federal government. We are currently searching for an experienced Sr.
Systems Analyst to support one of our clients at the National
Institutes of Health. This opportunity is permanent, full-time, and on
site in Bethesda/Rockville, MD.
Job Summary
Our client requires the services of a Sr. Systems Analyst with a strong
background in computer application design and development with a
strength in Java-based client/server applications.
Job Duties
The successful candidate will be responsible for the following:
-Develop production software and perform data processing to support the
alignment and annotation phases of the genome data processing pipeline
within a department at the National Institutes of Health (NIH.) Will
also be responsible for improving data quality, performance,
reliability, and maintainability of the pipeline software and process.
-Develop genomic sequence assembly software in C and C++ for use on
multiple platforms (Windows, Unix, Apple). Will use a C++ Toolkit,
which provides platform-independent modules and APIs for programming
genomic data analysis software
-Will implement QA and reporting activities to reduce errors and avoid
major processing delays to result in a more stable pipeline process.
Will validate and improve data quality using methods such as close
inspection of data samples to identify and categorize annotation
errors.
-Will be responsible for providing continued support with change in the
data management environment using a BerkeleyDB data store with
object-oriented data encapsulation and migrating toward relational
database management using Microsoft SQL Server.
-Organize data flow and configuration management using standardized
procedures across organism-specific builds
-Design, implement, and factor code for incremental migration of
pipeline software from C to C++
-Assist with the factor pipeline processing software executed on
internal compute farm, which is a distributed, load-sharing and
job-scheduling environment using Platform Computing Corporation's
Load Sharing Facility (LSF).
-Employ C++ and Perl for software programming and performs data and
database management using BerkeleyDB and Microsoft SQL Server. This
internal department has recently migrated from Sun to Linux as a
development platform; candidates should be familiar with GNU C++
compiler and tools such as Purify, Quantify, and Valgrind.
REQUIREMENTS;
-4/5+ yrs experience in Java programming
-3 Yrs experience in C and C++ development/ Web applications
development.
-Min. MS in Computer Science or related technical discipline
PREFERRED:
-Biological Database /Statistical Data Analysis
-Candidates should have a preferred background in bioinformatics,
information retrieval and web based knowledge management. Scientific
background, biology a plus
Interested applicants should submit resume and salary requirements to
Monica Lyerly, Technical Recruiter. email***@***.com. We require a
short programming skill assessment completed prior to an interview,
upon receipt of your resume we will be sending you the required
assessment to be completed and returned to the same e mail address.Out
of area candidates will be considered for this opportunity.
EOE, M/F/D/V.
- 15
- JAWS failureThis just started happening.
I can run a JAWS app from within the browser.
But when I later go to run from the desktop icon it says I don't have
Java 1.6 installed.
Here is a typical JNLP file after JAWS has normalised it:
<jnlp spec="1.6+" codebase="http://mindprod.com/replicator/"
href="http://mindprod.com/replicator/replicatorreceiverwebsite.jnlp">
<information>
<title>The Replicator 9.6 via website</title>
<vendor>Canadian Mind Products</vendor>
<homepage href="http://www.mindprod.com/"/>
<description>Replicates files via website. Also keeps them up to
date efficiently.</description>
<description kind="short">Replicates files via
website.</description>
<description kind="one-line">Replicates files via
website.</description>
<description kind="tooltip">the Replicator</description>
<icon href="http://mindprod.com/replicator/replicator.gif"
height="64" width="64" kind="default"/>
<icon href="http://mindprod.com/replicator/replicatorsplash.gif"
height="128" width="128" kind="splash"/>
<shortcut online="true">
<desktop/>
<menu submenu="The Replicator"/>
</shortcut>
</information>
<security>
<all-permissions/>
</security>
<update check="timeout" policy="always"/>
<resources>
<java initial-heap-size="134217728" max-heap-size="536870912"
java-vm-args="-ea" href="http://java.sun.com/products/autodl/j2se"
version="1.6+"/>
<jar href="http://mindprod.com/replicator/replicator.jar"
download="eager" main="false"/>
<property name="VIA" value="website"/>
<property name="PROJECT_NAME" value="Mindprod.com"/>
<property name="UNIQUE_PROJECT_NAME"
value="com.mindprod.replicator"/>
<property name="SUGGESTED_RECEIVER_BASE_DIR" value="C:\mindprod"/>
<property name="SUGGESTED_RECEIVER_ZIP_STAGING_DIR"
value="C:\mpstaging"/>
<property name="WEBSITE_ZIP_URL"
value="http://mindprod.com/replicator"/>
<property name="SUGGESTED_LAN_ZIP_URL"
value="http://mindprod.com/replicator"/>
<property name="KEEP_ZIPS" value="false"/>
<property name="UNPACK_ZIPS" value="true"/>
<property name="AUTHENTICATION" value="none"/>
<property name="DEBUGGING" value="true"/>
</resources>
<application-desc main-class="com.mindprod.replicator.Replicator"/>
</jnlp>
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
|
|
|