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 7648205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:39:24+00:00 2026-05-31T10:39:24+00:00

Im trying to make a java bot that connects to an IRC, and then

  • 0

Im trying to make a java bot that connects to an IRC, and then when a user types a command, it “rolls dice” but it seems to not be working

cannot find symbol variable IntRoll
illegal start of type
cannot find symbol variable OpRoll
illegal start of type
cannot find symbol variable Op
cannot find symbol variable IntRoll
illegal start of type
cannot find symbol variable OpRoll
illegal start of type
cannot find symbol variable Op
cannot find symbol variable Op
cannot find symbol variable generator
int cannot be dereferenced
cannot return a value from method whose result type is void
int cannot be dereferenced
cannot return a value from method whose result type is void
cannot return a value from method whose result type is void
cannot return a value from method whose result type is void
cannot find symbol variable generator
cannot find symbol variable InRoll
cannot return a value from method whose result type is void
cannot find symbol variable InRoll
cannot return a value from method whose result type is void
cannot return a value from method whose result type is void

here are the two files,
http://pastebin.com/c47RqRsd
http://pastebin.com/v4Y42uF4

  • 1 1 Answer
  • 0 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-31T10:39:26+00:00Added an answer on May 31, 2026 at 10:39 am

    Problems with roll:

    • You cannot return a value from a constructor. Constructors are used to instantiate an object. You should probably create a field and set it to InRoll.
    • If you’re trying to generate a number between 2 and 12 with dice, that’s not the way to do it. You will get an unrealistic distribution where you get more 2’s than normal.
    • You cannot invoke a method on a primitive type. You should be using InRoll == someNumber.
    • You cannot return a value in a method if its return type is void.
    • You did not create a field named InRoll, so you cannot use it in your onMessage method.

    Problems with Dice4Cash:

    • You cannot access a field that does not exist. You create neither an IntRoll field nor an OpRoll field.

    I highly suggest you walk your way through some Java tutorials and learn the language.
    Getting Started.
    Learning the Java Language.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make a little java program that executes a system command but
I'm trying to make some simple XML with Java and org.w3c.dom, but I got
I am trying to make a program in Java that checks for three specific
I'm trying to make an executable war file ( java -jar myWarFile.war ) that
I am trying to make a Text Editor using Java Swing. In that I
I am trying to make an Android/ Java application that needs to connect to
I'm trying to make a paint in java, with classes and hierarchy. But my
I'm trying to make a bash script that will talk to a java program
I'm trying to make an array of integers in java but it won't work
I'm trying to make a Java connection with SQL Server, but I'm facing some

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.