473,467 Members | 1,455 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Case-sensitive imports conflict

Background:

I am trying to make use of the pdfbox library (www.pdfbox.com), which is a
java-based project that the user has ported to dotnet using the ikvm
environment (www.ikvm.net). IKVM in turn relies on a port of the GNU
Classpath library, which implements much of the standard java 1.4.

My problem:

GNU classpath supplies the following classes that pdfbox needs:

java.awt.image.BufferedImage
java.awt.Image

They appear in the same assembly, IKVM.GNU.Classpath.dll, and can both be
seen in the Object Browser after I reference that assembly from my vb.net
project.

Unfortunately, any attempt to use java.awt.image.BufferedImage in my code
is highlighted as a compile error (and reported as a compile error when
building:)

PdfToImageVB.vb(254): Type 'java.awt.Image.BufferedImage' is not defined.

Although both Image (type) and image (namespace) can be seen when scrolling
through intellisense, if you stop at java.awt.image it is captialized to
java.awt.Image.

When I use Sharpdevelop to set up a C# project, I do not have this issue,
but Sharpdevelop has the same issue for a VB.NET project.

Is there anything I can do? I don't enjoy developing in C#...
Nov 21 '05 #1
6 1965
Hi,

I am not sure why you are having problems with the pdfbox library.
I have used the open source sharppdf library with vb.net without any
problems.

http://sharppdf.it/home.asp

Ken
--------------------------
"Ross Presser" <rp******@NOSPAMgmail.com.invalid> wrote in message
news:gm****************************@40tude.net...
Background:

I am trying to make use of the pdfbox library (www.pdfbox.com), which is a
java-based project that the user has ported to dotnet using the ikvm
environment (www.ikvm.net). IKVM in turn relies on a port of the GNU
Classpath library, which implements much of the standard java 1.4.

My problem:

GNU classpath supplies the following classes that pdfbox needs:

java.awt.image.BufferedImage
java.awt.Image

They appear in the same assembly, IKVM.GNU.Classpath.dll, and can both be
seen in the Object Browser after I reference that assembly from my vb.net
project.

Unfortunately, any attempt to use java.awt.image.BufferedImage in my code
is highlighted as a compile error (and reported as a compile error when
building:)

PdfToImageVB.vb(254): Type 'java.awt.Image.BufferedImage' is not defined.

Although both Image (type) and image (namespace) can be seen when scrolling
through intellisense, if you stop at java.awt.image it is captialized to
java.awt.Image.

When I use Sharpdevelop to set up a C# project, I do not have this issue,
but Sharpdevelop has the same issue for a VB.NET project.

Is there anything I can do? I don't enjoy developing in C#...
Nov 21 '05 #2
"Ross Presser" <rp******@NOSPAMgmail.com.invalid> schrieb:
java.awt.image.BufferedImage
java.awt.Image

They appear in the same assembly, IKVM.GNU.Classpath.dll, and can both be
seen in the Object Browser after I reference that assembly from my vb.net
project.

Unfortunately, any attempt to use java.awt.image.BufferedImage in my code
is highlighted as a compile error (and reported as a compile error when
building:)

PdfToImageVB.vb(254): Type 'java.awt.Image.BufferedImage' is not defined.

Although both Image (type) and image (namespace) can be seen when
scrolling
through intellisense, if you stop at java.awt.image it is captialized to
java.awt.Image.
[...]
Is there anything I can do?


Ask the library's author for a CLS-compliant version. MSDN:

| For two identifiers to be considered distinct, they must differ
| by more than just their case.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
On Thu, 19 May 2005 21:08:14 +0200, Herfried K. Wagner [MVP] wrote:
"Ross Presser" <rp******@NOSPAMgmail.com.invalid> schrieb:
java.awt.image.BufferedImage
java.awt.Image

They appear in the same assembly, IKVM.GNU.Classpath.dll, and can both be
seen in the Object Browser after I reference that assembly from my vb.net
project.

Unfortunately, any attempt to use java.awt.image.BufferedImage in my code
is highlighted as a compile error (and reported as a compile error when
building:)

PdfToImageVB.vb(254): Type 'java.awt.Image.BufferedImage' is not defined.

Although both Image (type) and image (namespace) can be seen when
scrolling
through intellisense, if you stop at java.awt.image it is captialized to
java.awt.Image.
[...]
Is there anything I can do?


Ask the library's author for a CLS-compliant version. MSDN:

| For two identifiers to be considered distinct, they must differ
| by more than just their case.


Thank you for the answer. Unfortunately, it seems unlikely they will do
this, since the effort is to be compatible with java ...

I will have to write at least part of it in C#.
Nov 21 '05 #4
On Thu, 19 May 2005 14:41:58 -0400, Ken Tucker [MVP] wrote:
Hi,

I am not sure why you are having problems with the pdfbox library.
I have used the open source sharppdf library with vb.net without any
problems.

http://sharppdf.it/home.asp


SharpPDF appears to be only for creation of new PDFs; for that purpose I am
content with iText.NET, which seems much more full-featured.

pdfbox, however, is supposed to add investigation of the structure of
existing PDFs, as well as pdf rendering.

My problem is at heart not with pdfbox, but with the IKVM port of GNU
Classpath.
Nov 21 '05 #5
"Ross Presser" <rp******@NOSPAMgmail.com.invalid> schrieb:
Ask the library's author for a CLS-compliant version. MSDN:

| For two identifiers to be considered distinct, they must differ
| by more than just their case.


Thank you for the answer. Unfortunately, it seems unlikely they will do
this, since the effort is to be compatible with java ...

I will have to write at least part of it in C#.


I think it's the best solution to keep the part using the library in a C#
project too.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #6
Hi,

http://www.codeproject.com/showcase/TallComponents.asp

Ken
----------------
"Ross Presser" <rp******@NOSPAMgmail.com.invalid> wrote in message
news:s5******************************@40tude.net.. .
On Thu, 19 May 2005 14:41:58 -0400, Ken Tucker [MVP] wrote:
Hi,

I am not sure why you are having problems with the pdfbox library.
I have used the open source sharppdf library with vb.net without any
problems.

http://sharppdf.it/home.asp


SharpPDF appears to be only for creation of new PDFs; for that purpose I am
content with iText.NET, which seems much more full-featured.

pdfbox, however, is supposed to add investigation of the structure of
existing PDFs, as well as pdf rendering.

My problem is at heart not with pdfbox, but with the IKVM port of GNU
Classpath.
Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Newbie | last post by:
Dear friends, I am having a hard time understanding how to use a SELECT CASE in ASP. I have used it in VB but never in ASP scripting. Scenerio: I have 2 textboxes on a form that I have to...
19
by: Robert Scheer | last post by:
Hi. In VBScript I can use a Select Case statement like that: Select Case X Case 1 to 10 'X is between 1 and 10 Case 11,14,16 'X is 11 or 14 or 16 End Select
1
by: ST | last post by:
Hi, I'm trying to debug someone else's code, and I'm going thru this Select Case statement. I'm having problems with the "OTHER" case...in that when the first line of the case is false, it jumps...
2
by: cs168 | last post by:
Hi I am new in ASP programming so I do use the very basic and simple way to do all my stuff. Now I do really got stuck at how can I loop thru the calculation for all my selection.. My full code is as...
6
by: deanfamily11 | last post by:
I've set up a case statement to have my program determine where on the Cartesian plane a point the user enters is located. I keep getting the C2051 error when I compile. Any help? #include...
10
by: MLH | last post by:
Suppose the following... Dim A as Date A=#7/24/2005# I wish to compare value of A against 2 other values: 1) 8/1/2005 2) 9/1/2005 Which is better and why... First:
7
by: Lauren Quantrell | last post by:
Is there any speed/resource advantage/disadvantage in using Select Case x Case 1 Case 2 etc. many more cases... End Select VS.
22
by: John | last post by:
Hi Folks, I'm experimenting a little with creating a custom CEdit control so that I can decide on what the user is allowed to type into the control. I started off only allowing floating point...
17
by: Navodit | last post by:
So I have some code like: if (document.Insurance.State.selectedIndex == 1) { ifIll(); } else if (document.Insurance.State.selectedIndex == 2) { elseKan(); }
24
by: clockworx05 | last post by:
Hey guys i have this program that i need to write for class. here are the instructions: Write a function called foo that asks the user for their age. Pass the age value to a function called...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.