Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1070473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:34:17+00:00 2026-05-16T20:34:17+00:00

I’m learning JavaBeans and it’s application I’m creating my first ever Bean, I use

  • 0

I’m learning JavaBeans and it’s application I’m creating my first ever Bean, I use an IDE called JCreator(free) which I have been using so far for the the compilation process of Servlets and I transfer the .class file to the local Apache server.

In my lecture notes it states that I need to store the JavaBeans I create in a package, which according to my understanding should reside inside the JDK version I use, am I right?
The notes talk about the following command to line method for this

javac -d. newBean.java

I use a local folder in my E: drive to store all the Java files I create and compile them there, obviously I move the class files in to the classes folder in my WEB-INF in my Apache which is located in local C:

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:34:17+00:00Added an answer on May 16, 2026 at 8:34 pm

    One way to solve the assignment requirements.

    Assuming a directory structure as follows:

    C:\projects\stackoverflow\3748425>dir /s
     Volume in drive C is WINVISTA
     Volume Serial Number is 3079-C372
    
     Directory of C:\projects\stackoverflow\3748425
    
    09/19/2010  07:55 PM              .
    09/19/2010  07:55 PM              ..
    09/19/2010  07:56 PM              beans
                   0 File(s)              0 bytes
    
     Directory of C:\projects\stackoverflow\3748425\beans
    
    09/19/2010  07:56 PM              .
    09/19/2010  07:56 PM              ..
    09/19/2010  07:58 PM               540 Bean1.class
    09/19/2010  07:57 PM               357 Bean1.java
                   2 File(s)            897 bytes
    
         Total Files Listed:
                   2 File(s)            897 bytes
                   5 Dir(s)  170,347,962,368 bytes free
    
    
    

    And a Java source code file…

    
    package beans;
    
    public class Bean1 implements java.io.Serializable {
    
      private String a;
      private String b;
    
      public Bean1(){}
    
      public void setA(String a){
        this.a = a;
      }
    
      public void setB(String b){
        this.b = b;
      }
    
      public String getA(){
        return this.a;
      }
    
      public String getB(){
        return this.b;
      }
    
    }
    

    You can compile it with this command:

    javac -d . beans\Bean1.java
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a text area in my form which accepts all possible characters from
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I used javascript for loading a picture on my website depending on which small
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.