Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Unable to execute dex: java.nio.BufferOverflowException.

  1. #1
    Junior Member
    Join Date
    Feb 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Unable to execute dex: java.nio.BufferOverflowException.

    Now on i tried to Run my code, there is error as follows,

    "Unable to execute dex: java.nio.BufferOverflowException. "

    I tried to check it line by line, but not solve yet

    anyone can give me some advise,

    Thank you


  2. #2
    Member Ganeprog's Avatar
    Join Date
    Jan 2014
    Location
    Chennai,India
    Posts
    80
    My Mood
    Love
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default Re: Unable to execute dex: java.nio.BufferOverflowException.

    Hi,

    Please post your full code what you have tried.

    Happy to help

    Thanks,

  3. #3
    Junior Member
    Join Date
    Feb 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Unable to execute dex: java.nio.BufferOverflowException.

    public class MyView extends RelativeLayout {
    	// Bitmap localBitmap;
    	private static final String TAG = "MyView";
    	// private final int FP = -1;
    	// private final int WC = -2;
    	public boolean disableApplication = false;
    	private int imgType = 1;
    	public boolean isBlack = false;
    	boolean isInitialized;
    	private Bitmap myBitmap;
    	private Paint myPaint = new Paint();
    	private int[] numbers;
    	private Tama[] oyatamaArray;
    	private Tama[][] tamaArray;
    	private Bitmap localBitmap;
    	private Context ctx;
    	private WindowManager wm;
    ERROR COME FROM private WindowManager wm;

    public int getWinHeight() {
    		ctx = getContext();
    		wm = (WindowManager) ctx.getSystemService(Context.WINDOW_SERVICE);
    		DisplayMetrics displaymetrics = new DisplayMetrics();
    		int height = displaymetrics.heightPixels;
    		// int width = displaymetrics.widthPixels;
     
    		return height;
    	}
     
    	public int getWinWidth() {
    		ctx = getContext();
    		wm = (WindowManager) ctx.getSystemService(Context.WINDOW_SERVICE);
    		DisplayMetrics displaymetrics = new DisplayMetrics();
    		// int height = displaymetrics.heightPixels;
    		int width = displaymetrics.widthPixels;
    		return width;

Similar Threads

  1. Please help me! i am unable to compile and execute java files in command prompt
    By Sunanda Naik in forum What's Wrong With My Code?
    Replies: 6
    Last Post: March 24th, 2013, 08:42 AM
  2. Implement 2PC Protocol - Unable to Compile and Execute
    By The.Reaper in forum What's Wrong With My Code?
    Replies: 0
    Last Post: October 29th, 2012, 06:25 AM
  3. Strange errors with java.nio.file
    By jnewb in forum What's Wrong With My Code?
    Replies: 9
    Last Post: January 4th, 2012, 02:37 PM
  4. Unable to execute the program (no compilation error)
    By Alexie91 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: September 16th, 2011, 02:39 PM
  5. unable to execute prepared statement
    By nrao in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 11th, 2010, 08:26 PM