sun

Sun VM options

hi, what is Sun VM's equivalent option to IBM VM's -Xcheck:jni:alwayscopy ? ...

sparc assembly and the %y register

I am currently working with a sparc computer and I am trying to know if a number is prime or not. here is a part of the code : mov 0,%y mov 3, %l1 nop nop nop sdiv %l1,2,%l3 rd %y, %l6 cmp %l6, 0 So basicaly what we have here is 3/2. So there should be a reminder of 1. This r...

Manually generate EJB client jar with Sun Application Server 8.2 / Netbeans project

I have a netbeans / Sun Application Server (Some EJB use) project which we've been building manually and now trying to move to an automated system. Software Used: Netbeans 5.1 Java 1.5 Sun Application Server 8.2 Netbeans used Ant so taking the actual build process out wasn't that complicated except for the EJB part. The normal buil...

Sun TLP for SL-500 course

Hi, I'm gonna do a Sun TLP (Technical Learning Profiles) exam so I can later instruct a SL-500 Sun course. The problem is, I have no idea what kind of questions are going to be presented, since the course is rather conceptual and not that practical. Can anyone shed some light on the questions they may ask for this particular course? ...

Why does the Sun JVM continue to consume ever more RSS memory even when the heap, etc sizes are stable?

Over the past year I've made huge improvements in my application's Java heap usage--a solid 66% reduction. In pursuit of that, I've been monitoring various metrics, such as Java heap size, cpu, Java non-heap, etc. via SNMP. Recently, I've been monitoring how much real memory (RSS, resident set) by the JVM and am somewhat surprised. ...

Sun ONE Web Server 6.1 Server Parsed HTML

I am wondering what the Sun ONE web server equivalent is for the apache ssi #set var directive. I am looking to set a variable that can later be echoed out. ...

Where are default JVM heap sizes defined on linux (SL4)

I'm currently using sun's java 1.6 on a SL4 cluster. For some reason, the 1.6 JVM is starting up with an impossibly large heap, and cannot start: java -version Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. If I start it with e.g. -Xmx1800M, then it...

In C# could we imagine writing our own events without writing delegates?

I learned the object-oriented in Java. Now in develop in C#. This means that I never really understood the functioning of delagates but I know how to use them. Lately I discovered this page http://java.sun.com/docs/white/delegates.html. If Java is able to create event without delagates is it possible to do the same in C#? Could we imag...

Can't send many SMS using a loop

I want to send SMS from my PC using a GSM modem. I have used this example and I can send SMS. I want to use a loop to SMS to many users, but it doesn't work. My error: sms.SerialConnectionException: Port currently owned by SMSConnector at sms.SerialConnection.openConnection(SerialConnection.java:93) at sms.Sender.send(Sender.ja...

Work with Sun Solaris Operating System from .Net Based Application

Hello Friends, I am having a very strange requirement, Our client is having one network management system (Netcool) which reads the number of machine from two text file. Now whenever new machine is added in those text files application needs restart. We need to develop one GUI which writes the new machine into network in those files a...

MyFaces vs Sun Reference Implementation of JSF

Maybe, some performance comparison or some noticeable specific differences is what I want to know. As I heard there is no really big difference. Hence, I've got one more question. For what purposes dozens of people spent their time to reinvent the wheel implement already implemented spec ones more? ...

Sun C++ Compilers and Boost

I am currently developing on OpenSolaris 2009-06. The Boost::MPL Documentation seems to suggest that sun compilers are not supported (the document was last updated in 2004 ). Boost's top level documentation seems to suggest that the sun compilers 5.10 onwards are supported -- I guess this is a general level of support or does this includ...

Is it possible to save MySQL Workbench files as plain XML?

DB Designer had a lot of bugs but one outstanding feature was that database models were saved in plain XML by default. This allowed a user to diff file versions via SVN or Beyond Compare, easily finding any changes made to the database. Unfortunately, DB Designer's succsssor, MySQL Workbench, stores files in a proprietary MVW file form...

boost::any test code compiles with Sun CC but not g++

The following noddy test code: #include <iostream> #include <list> #include <boost/any.hpp> #include <boost/foreach.hpp> #include <typeinfo.h> using boost::any_cast; using std::cout; using std::cerr; typedef std::list<boost::any> many; template <typename T> inline bool is_any(const boost::any& op) { return (op.type() == typeid(T)); ...

It is a bad practice to use Sun's proprietary Java classes?

The compiler display warnings if you use Sun's proprietary Java classes. I'm of the opinion that it's generally a bad idea to use these classes. I read this somewhere. However, aside from the warnings are there any fundamental reasons why you should not use them? ...

Remove page numbers from man pages in Solaris?

When I use Solaris, I get page numbers every 60 lines or so that look like this SunOS 5.11 Last change: 10 Feb 2009 1 Also, I get headers like User Commands ls(1) Is there any way to remove them? It's distracting to have them appear when I'm reading text line by line. ...

GNU gdb 6.4 on SunOS 5.10, recognized executable formats.

Hi! Below details are from a session in a sun machine. $ file devli devli: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, stripped $ file a a: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped $ gdb GNU gdb 6.4 Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the ...

the sun java application server could not start, and shows following exception in server.log

For Deployment in sun java application server I tried, "start default server". But it shows the following exception in server.log file I guess the default port 8080 occupied by some other, I dont know how to remove this or fix this [#|2009-12-24T10:22:34.562+0530|WARNING|sun-appserver-pe8.2|javax.enterprise.tools.launcher|_ThreadID=10;|...

which non-sun java(s) can i use to run Clojure?

I'm automating the process of building development-VMs for a project and having a really hard time getting sun-java-6 to install in a non-interactive environment because it really wants to ask about licenses. what are my other options are far as clojure friendly javas go? ...

Why should I use the Sun JDK over the OpenJDK, or vice-versa?

I recently purchased a new laptop and made my old one into a Linux box, running Ubuntu. I started to download the tools that I need, and I'm getting my Java development environment set up now. I have a choice between the Sun Java 6 JDK and the OpenJDK. What advantages does one have over the other? Can I run both side by side? ...