peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

One of the thinks I hate about NetBeans is all this stuff that is added to build-impl.xml without user knowledge. You need to open that file and see what is on the line 470 where the error is reported. If you have problem solve it then post fraction of that xml so we can see what is going on

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

No need for different computer, you just need to configure the one which you use little more. Hiding extension is one of silly things that Microsoft introduced and for some reason it does keep supporting over years. Other operating systems show extensions by default so there is no confusion what type of file you are dealing with despite of what ever icon can be assign to it. Either way I'm happy that you resolve it. Feel free to ask again if you need help.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@dmanw100 I take it a bad joke to point to 1.3 JEE tutorial. If you wanted you should have pointed here

@prasanna123 without Java basics knowledge you are facing bad times, so I will look first on Java basics before attempting any Java web stuff

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You calling new menuFrame() class, but just bellow it you have only method with similar signature. You need to make up your mind if you want to call class or just method. In case of class call your code may look like this

import javax.swing.*;
import java.awt.event.*;

class MyFrame {
    public static void main(String[] args) {
        new MenuFrame();
    }


    public static class MenuFrame extends JFrame implements ActionListener {
        private JPanel menuPanel;
        private JButton btnStart;
        
        public MenuFrame() {
            menuPanel = new JPanel();
            menuPanel.setLayout(null);

            JLabel lblName = new JLabel("Name: ");
            lblName.setBounds(30, 20, 100, 20);
            JTextField txtName = new JTextField(15);
            txtName.setBounds(80, 20, 150, 20);
            JButton btnStart = new JButton("Start");
            btnStart.setBounds(90, 60, 100, 20);

            menuPanel.add(lblName);
            menuPanel.add(txtName);
            menuPanel.add(btnStart);
            setDefaultProperties();
        }

        public void setDefaultProperties() {
            this.setTitle("Hello World!");
            this.setSize(300, 200);
            this.setVisible(true);
            this.setLocationRelativeTo(null);
            this.add(menuPanel);
        }

        public void actionPerformed(ActionEvent e) {
            if (e.getSource() == btnStart)
                btnStart.setText("lol");
        }

    }
}
Philippe.Lahaie commented: did not point to a real problem, OP's constructor is fine. -1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Does it allow you to use any version of jdk and tomcat and full root level control?
>> It is up to you what you install starting from selection of your operating system from different flavours of Unix (Ubuntu, Fedora, Debian Centos)

And I have one more doubt, suppose if I start with a vps with decent configuration but later,say after 2 years my site is receiving a massive amount of traffic and also I am building my website more and more complex and large. Then if the hosting company cannot handle that much? or if they start demanding unnecessary amount of money to do that for me or for that much requirement I guess I need a dedicated hosting and my current hosting company do not support dedicated hosting then what are the choices a person left with at that time?
As far I know this service provider does support large organizations across world so I wouldn't be worried now. Nevertheless you should check your plans and see what will be your business grow in time and if this solution is reasonable/adequate.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

The file is SQL and you will need to import it in your database. The reason you do not see extension is down to your settings of Windows, you should enable extensions on all files not just known files. (In Windows XP this could be accessed through Windows Explorer in Options menu).

PS: Time to change IE for Chrome or at least Firefox :)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

As I said, it is ages since I did something in C# for mobiles, not so much market and not really interesting. Either way, give it a try. Any possible differences shouldn't be so huge. If you get in trouble, post and somebody may be able to help you (with some spare time it can be even me ;) )

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I have no problem to download them and extract. What operating system you using, browser used to download and what application you used to open downloaded files?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Ages since I did anything in C# and be it mobile, nevertheless this should be enough A generic Mobile Data Collection Control

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Doesn't need to be installed. You are looking on Selenium IDE that is plugin for browsers and used as easy way to record test. You need to check code base library and then you will be able to monitor events on a browser

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Simple, when you call for JAR file include starting parameters on the same line as name of file you will execute. Then in Java app check for any arguments (args[])

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Spam

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thread closed, please follow discussion here

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I wouldn't do that. You need to have it connected with some database so you do give appropriate/linked suggestions, example shopping for car not to suggest pc components. J2ME is not suitable platform for this and I'm not sure if I would attempt such thing on Android or iPhone yet due to still slow internet conection

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Obviously beginner and just having silly ideas. Java wasn't design for what you want it to do.
End of story
Thread closed

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

What you expect when you add import keyword at the end

java.text.NumberFormat import;

needs to be as

import java.text.NumberFormat;

and then also mess up method keywords order

StringToInt public void () throws IOException

should be something as

public void StringToInt() throws IOException

also that method should receive string as parameter and no call global variable

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Well your problem is that whole code is cramped in main method with no other method calls that is in general sign of bad codding and there is nothing to really test.

You should have at least two methods: 1) to read input provided by user and return value only if there is something to return (running while if input empty); 2) to have parse string.

Then you will write appropriate test for each of them like: no user input; user entered string; parse fail string not an integer; parse success string is possible to convert to integer.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Most of us computer science graduates that picked mobile development either at work or in own free time. What I can say is that employers are looking for people with proven track of development. Meaning either you can show them your applications on the market or in some version system so they can judge you. Personally I wouldn't bother with certification course, I would work on my apps or look for some project (open source development provides lots of opportunities) that I could join and work on

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You want to do this database connection in servlet and there is also place where you can call on a function that will do resizing

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Eclipse official documentation Creating a New JAR File

DavidKroukamp commented: beat me to it ;) +4
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you want to just create click on browser you may want to look into Selenium library (nice library used for testing web applications)

mKorbel commented: thanks for link +1 +11
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

At the time it was privilege to get project hosting, you had to get through tough process of explaining why your project should be hosted etc.
Now days anyone can get project hosted at sourceforge. However in order to survive they have to relay on heavy advertising to support their old software and hardware setup. Due these "problems" number of good projects moved to more flexible and open project hosting solutions. This is how I see it

mikulucky commented: That is a shame :( +0
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Secondly, you are more likely to know only mods in your forums of interest, but there more people then these. At the moment there is 20 of mods, 1 supermod and 4 admins. Do you know them all?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

At the moment not. You may try to continue discussion in thread where you received bad reputation to explain why did you chose the answer as you did.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

excuse me, but havent u seen the title of this thread? im new to java... i still know nothing, and this guys right here are doing their best to help me...how come you can say things like that,, man , ur heartless.

You been given advice at the beginning to look into array, but rejected as to be difficult...
Secondly it took long time to get any code out of you. So please do not get touchy on comment, also would be nice if you actually thank to all these that helped you.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Have look on "linode" hosting (that is what I have)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Sorry for delay.
My MVC tutorial was written long time ago before I become friend with IntelliJ so I did direct development in Tomcat webapps where I created project folder there.

Trying to solve your issue through IDE and folder structure you have, I had to change web.xml servlet-class definition to

<servlet-class>Servlet.LoginServlet</servlet-class>

and removed anotation from LoginServlet

@WebServlet("/Controller/Login")

after that I was able to read data from config. Let me know if you still have some problems. (If I get more time I may try to create this tutorial with Hibernate)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Ok, you win

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

That would be down to the fact that you call it Droid where in reality you should call it Android. Also you may want to have look on Selenium site of AndroidDriver

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Well seems to be obvious that you are missing some libraries. There is something on back of my mind that latest NetBeans download included some testing frameworks, not sure of that and due to this you didn't need it to manually include them in project.
In Eclipse you will either have to manually download them and point Eclipse to them, or if you know how to use Maven just add them to your pom file

For JOptionPane, check that your installation of Eclipse is associated with an installation of Java

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1) Reasonable yes, impressive not sure, you should check with project tutors if someone would be interested in it.
2) On top of the forum there is post with title Starting mobile development [SDK / tutorials / resources / faq] that should provide you with plenty of start-up materials

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You would need to know how to use Maven and create super-pom that will install it. Otherwise just manual.
Testing, there is plenty of testing frameworks available for Android and you should have been doing it from beginning not now at end

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

why of course? Depending on your needs you may need to pay tens of thousands a month :)

We discussed personal websites, not business solutions :)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Sorry I have no idea why I typed PHP.

One of the posts was originally in PHP section, but I merge it with post in Java. Not your fault, OP is to blame. However you see how important it is to him

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

since I doubt you need to print "zerothousand zerohundred fourteen" when 14 is the input, I deliberately did NOT put the 0 in that array :)
and as I already said before, answering JamesCherrill, indeed, you don't need the first array, I'm aware of that, but IMHO it might be easier for the OP to see the link, and if not, all that happened is that I wrote some silly code :)

Even though there is no need for zero due to assignment requirement "1-10,001" it is much easier to have it included as to play games with increment of 1 in my opinion...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@stultuske you better off if you include zero ;) , also there is no need for first integer array

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@Ms New to Java I do recommend that you stop sending personal messages(PM) to forum members. It is unwelcome practice.
All the help you got so far is good, but it is up to you to use it. This is NOT 24/7 coding forum for lazy people.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thread closed as it is double of this thread

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@Ms New to Java
1)Multiposting not welcome!
2) Use code tags when posting any code such as [code] YOUR CODE HERE [/code]
3) Thread closed. For further discussion follow this thread

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Please search forum this was already discussed multiple times (last time no longer then few weeks). Secondly use of if/else for every check is mad house use array

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

i am using net beans 6.8 and in that there is no file named web.xml rather it has sun-web.xml, also its content are not same as like in net beans' earlier versions. iit don't have init parameter like and i want to use filter and i have to make changes web.xml but it not work when i make changes own my own in it. why this difference will overcome?

That will be down to the fact that you are using NetBeans that is coming with GlassFish as default Java container(server) instead of Tomcat. Take my advise, relay more on knowledge then your IDE.

@anand01 do you think you could create ZIP file of your project and attach it here? If you have git/bitbucket or similar account just post link to source. Also you may want to check your project folder structure and names. (Looks like you reused MVC tutorial in JSP section and made mistake somewhere, otherwise you would be getting these values)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Yes of course, because you overwrite previous values. You need to store these data in a collection(array, array list, vector etc)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

This is exactly what happens when somebody first act and only after that thinks...

To make some people happy, I will say that I use Windows XP, Windows 7, Mac OS, Ubuntu. I do my coding in Intellij, Eclipse, NetBeans and sometimes on JCreator (given that it is often much easier just to use IDE in which project was created instead of trying to export it somewhere else). Plus I use Emacs, Vi and Vim whenever there is something to be done on server(configs are most often the case)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You need to separate view from logic, meaning move that database connectivity to a class that will be called by servlet and do not do this in JSP. Check out MVC tutorial at the top of JSP section for more suitable approach

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Have look at iText library, but you may run in difficulties with PDFs created from scanned documents (basically converted JPEG or TIFF to PDF) which needs to be run with OCR and this process is never 100% perfect

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

The question was "all i want is the java api"
WTH has an API to do with a pricelist???

Well as "I'm sure" you read our forum rules we do not like people to "share" copyright material. It is my understanding that this library is paid stuff so it is unlikely to have public/free API documentation available. If you know where to find it LEGALY you are more then welcome to post it.

PS: Get some manners.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I had look on Java Plot that I think will use with one of my pet projects

mKorbel commented: happy new year, thanks for link +10
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

200$ montly or yearly?

Sorry of course it is yearly.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@warlord902 cheap is wrong word in this case. I pay $200 for my hosting and is cheap for me, because I live in UK and service provided by company(VPS, set it as you wish) is fair for me. What would be cheap for you in India?